Skip to content

Commit

Permalink
Set the mobileVerifiedAt field to null when the mobile number changes
Browse files Browse the repository at this point in the history
  • Loading branch information
drieJAC committed Nov 1, 2024
1 parent f3046ba commit 50c41d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/InformationReview/PersonalDetailsSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
field="mobile"
error-field-name="mobile"
:is-asked="isAsked"
@change-field="changeUserDetails"
@change-field="changeMobile"
/>
</dd>
</div>
Expand Down Expand Up @@ -681,6 +681,10 @@ export default {
});
}
},
changeMobile(obj) {
obj.mobileVerifiedAt = null;
this.changeUserDetails(obj);
},
changeUserDetails(obj) {
if (obj.firstName || obj.lastName) {
obj = this.makeFullName(obj);
Expand Down

0 comments on commit 50c41d8

Please sign in to comment.