Skip to content

Commit 2d61598

Browse files
committed
fix: issue #5950 and issue #5947
1 parent 2c01ef7 commit 2d61598

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/shared/components/Settings/Profile/BasicInfo/index.jsx

-6
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ export default class BasicInfo extends ConsentComponent {
124124
invalid = true;
125125
}
126126

127-
if (!_.trim(newProfileInfo.description).length) {
128-
invalid = true;
129-
}
130-
131127
if (_.trim(newBasicInfo.birthDate).length > 0) {
132128
if (!moment().isAfter(newBasicInfo.birthDate)) {
133129
invalid = true;
@@ -390,7 +386,6 @@ export default class BasicInfo extends ConsentComponent {
390386

391387
const invalid = !_.trim(newProfileInfo.firstName).length
392388
|| !_.trim(newProfileInfo.lastName).length
393-
|| !_.trim(newProfileInfo.description).length
394389
|| !_.trim(newBasicInfo.gender).length
395390
|| !_.trim(newBasicInfo.tshirtSize).length
396391
|| !_.trim(newBasicInfo.country).length
@@ -659,7 +654,6 @@ export default class BasicInfo extends ConsentComponent {
659654
</span>
660655
</div>
661656
<textarea disabled={!canModifyTrait} id="description" styleName="bio-text" name="description" placeholder="In 240 characters or less, tell the Topcoder community a bit about yourself" onChange={this.onUpdateInput} value={newProfileInfo.description} maxLength="240" cols="3" rows="10" />
662-
<ErrorMessage invalid={_.isEmpty(newProfileInfo.description) && inputChanged} message="Short bio cannot be empty" addMargin />
663657
</div>
664658
</div>
665659
</form>

src/shared/reducers/page/settings.js

-8
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,6 @@ function onUpdateProfileDone(state, { error }) {
185185
return state;
186186
}
187187

188-
function onUpdateProfileDoneV5(state, { error }) {
189-
if (!error) {
190-
toastrSuccess('Success! ', 'Your account information was updated.');
191-
}
192-
return state;
193-
}
194-
195188
function onUploadPhotoDone(state, { error }) {
196189
if (!error) {
197190
toastrSuccess('Success! ', 'Your profile image has been updated.');
@@ -238,7 +231,6 @@ function create(defaultState = {}) {
238231
[actions.profile.addSkillDone]: mergeSkills,
239232
[actions.profile.hideSkillDone]: mergeSkills,
240233
[actions.profile.updateProfileDone]: onUpdateProfileDone,
241-
[actions.profile.updateProfileDoneV5]: onUpdateProfileDoneV5,
242234
[actions.profile.updatePasswordDone]: onUpdatePasswordDone,
243235
[actions.profile.uploadPhotoDone]: onUploadPhotoDone,
244236
[actions.profile.deletePhotoDone]: onDeletePhotoDone,

0 commit comments

Comments
 (0)