Skip to content

Commit 5dc286c

Browse files
committed
fix saving country to basic_info
1 parent 9eeb729 commit 5dc286c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/routes/settings/helpers/settings.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,14 @@ export const applyProfileSettingsToTraits = (traits, profileSettings) => {
115115
const updatedTrait = {...trait}
116116
const [firstName, lastName] = profileSettings.firstNLastName ? profileSettings.firstNLastName.split(/\s+/) : []
117117
const photoURL = profileSettings.photoUrl
118+
const country = profileSettings.country
118119

119120
// update only if new values are defined
120121
const updatedProps = _.omitBy({
121122
photoURL,
122123
firstName,
123124
lastName,
125+
country,
124126
}, _.isUndefined)
125127

126128
updatedTrait.traits = {

0 commit comments

Comments
 (0)