Skip to content

Commit

Permalink
Merge pull request #6025 from topcoder-platform/develop
Browse files Browse the repository at this point in the history
Release v1.15.5
  • Loading branch information
luizrrodrigues authored Feb 17, 2022
2 parents 84100bd + 506d0cb commit e1caddd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ workflows:
branches:
only:
- develop
- fix/settings-save-fail
# This is alternate dev env for parallel testing
- "build-test":
context : org-global
Expand Down Expand Up @@ -372,6 +373,7 @@ workflows:
only:
- develop
- features/mm-dashboard
- fix/settings-save-fail
# Production builds are exectuted
# when PR is merged to the master
# Don't change anything in this configuration
Expand Down
5 changes: 5 additions & 0 deletions src/shared/components/Settings/Profile/BasicInfo/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export default class BasicInfo extends ConsentComponent {
newBasicInfo.tshirtSize = null;
}

newProfileInfo.addresses[0] = _.omit(newProfileInfo.addresses[0], ['createdAt', 'updatedBy', 'createdBy', 'updatedAt']);
_.forEach(newProfileInfo.addresses[0], (value, key) => {
newProfileInfo.addresses[0][key] = _.trim(value);
});
Expand Down Expand Up @@ -240,6 +241,10 @@ export default class BasicInfo extends ConsentComponent {
}
}

if (newProfileInfo.homeCountryCode == null) {
delete newProfileInfo.homeCountryCode;
}

const updateProfileData = {
...newProfileInfo,
};
Expand Down

0 comments on commit e1caddd

Please sign in to comment.