Commit changed values to store on submit.
This commit is contained in:
parent
505000fd32
commit
0cddad3cf4
1 changed files with 11 additions and 1 deletions
|
|
@ -105,7 +105,17 @@ export default {
|
|||
},
|
||||
async setContactDetails() {
|
||||
if (this.haveCustomerDetailsChanged) {
|
||||
console.log("change detected");
|
||||
await this.dispatchStoreAction(
|
||||
this.storeActions.SAVE_CUSTOMER_DETAILS,
|
||||
{
|
||||
firstName: this.firstName,
|
||||
lastName: this.lastName,
|
||||
emailAddress: this.emailAddress,
|
||||
phoneNumber: this.phoneNumber,
|
||||
isSmsOptIn: this.isSmsOptIn,
|
||||
},
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
this.closeModal();
|
||||
|
|
|
|||
Loading…
Reference in a new issue