File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/routes/settings/helpers Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ import _ from 'lodash'
1212 * @returns {Object } data formated for profile settings page form
1313 */
1414export 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 */
4647export 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
You can’t perform that action at this time.
0 commit comments