Skip to content

Commit 11c5309

Browse files
committed
Using customer_info trait for pushing to prod as we don't have accounts app and member services changes pushed to PROD
1 parent 664036b commit 11c5309

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/routes/settings/helpers/settings.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import _ from 'lodash'
1212
* @returns {Object} data formated for profile settings page form
1313
*/
1414
export const formatProfileSettings = (traits) => {
15-
const connectTrait = _.find(traits, ['traitId', 'connect_info'])
15+
// TODO Revert to 'connect_info' again
16+
const connectTrait = _.find(traits, ['traitId', 'customer_info'])
1617
let data = {}
1718

1819
if (connectTrait) {
@@ -45,8 +46,9 @@ export const formatProfileSettings = (traits) => {
4546
*/
4647
export const applyProfileSettingsToTraits = (traits, profileSettings) => {
4748
const updatedTraits = traits.map((trait) => {
48-
// we put all the info from profile settings to `connect_info` trait as it is, skipping `photoUrl`
49-
if (trait.traitId === 'connect_info') {
49+
// we put all the info from profile settings to `customer_info` trait as it is, skipping `photoUrl`
50+
// TODO Revert to 'connect_info' again
51+
if (trait.traitId === 'customer_info') {
5052
const updatedTrait = {...trait}
5153
const updatedProps = _.omit(profileSettings, 'photoUrl')
5254

0 commit comments

Comments
 (0)