Skip to content

Commit 2c01ef7

Browse files
committed
fix: v3 member search failing to unmarshall obj
1 parent a289295 commit 2c01ef7

File tree

1 file changed

+1
-15
lines changed
  • src/shared/components/Settings/Profile/BasicInfo

1 file changed

+1
-15
lines changed

src/shared/components/Settings/Profile/BasicInfo/index.jsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff 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 });

0 commit comments

Comments
 (0)