File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
src/shared/components/Settings/Profile/BasicInfo Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,6 @@ export default class BasicInfo extends ConsentComponent {
190190 addUserTrait,
191191 updateUserTrait,
192192 updateProfileV5,
193- profile,
194193 } = this . props ;
195194 try {
196195 const parsedDate = moment ( newBasicInfo . birthDate ) . utc ( ) ;
@@ -248,20 +247,7 @@ export default class BasicInfo extends ConsentComponent {
248247 const updateProfileData = {
249248 ...newProfileInfo ,
250249 } ;
251- updateProfileData . addresses . forEach ( ( address , idx ) => {
252- if ( ! address . createdAt ) {
253- updateProfileData . addresses [ idx ] . createdAt = new Date ( ) ;
254- }
255- if ( ! address . updatedAt ) {
256- updateProfileData . addresses [ idx ] . updatedAt = new Date ( ) ;
257- }
258- if ( ! address . createdBy ) {
259- updateProfileData . addresses [ idx ] . createdBy = profile . handle ;
260- }
261- if ( ! address . updatedBy ) {
262- updateProfileData . addresses [ idx ] . updatedBy = profile . handle ;
263- }
264- } ) ;
250+
265251 await updateProfileV5 ( updateProfileData , handle , tokenV3 ) ;
266252
267253 this . setState ( { isSaving : false } ) ;
You can’t perform that action at this time.
0 commit comments