Skip to content

Commit 506d0cb

Browse files
Merge pull request #6020 from topcoder-platform/fix/settings-save-fail
fix: settings save fail
2 parents 4f53599 + 9a3e7c9 commit 506d0cb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ workflows:
343343
branches:
344344
only:
345345
- develop
346+
- fix/settings-save-fail
346347
# This is alternate dev env for parallel testing
347348
- "build-test":
348349
context : org-global
@@ -372,6 +373,7 @@ workflows:
372373
only:
373374
- develop
374375
- features/mm-dashboard
376+
- fix/settings-save-fail
375377
# Production builds are exectuted
376378
# when PR is merged to the master
377379
# Don't change anything in this configuration

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ export default class BasicInfo extends ConsentComponent {
206206
newBasicInfo.tshirtSize = null;
207207
}
208208

209+
newProfileInfo.addresses[0] = _.omit(newProfileInfo.addresses[0], ['createdAt', 'updatedBy', 'createdBy', 'updatedAt']);
209210
_.forEach(newProfileInfo.addresses[0], (value, key) => {
210211
newProfileInfo.addresses[0][key] = _.trim(value);
211212
});
@@ -240,6 +241,10 @@ export default class BasicInfo extends ConsentComponent {
240241
}
241242
}
242243

244+
if (newProfileInfo.homeCountryCode == null) {
245+
delete newProfileInfo.homeCountryCode;
246+
}
247+
243248
const updateProfileData = {
244249
...newProfileInfo,
245250
};

0 commit comments

Comments
 (0)