CSR-1656 | Front end promo bug fixes

Don't save empty serverData to store
Save all promos on quote page nav
This commit is contained in:
Scott Kiener 2023-10-24 10:12:57 -04:00
parent e93a5e049d
commit f7715b35e5
2 changed files with 7 additions and 5 deletions

View file

@ -265,7 +265,7 @@ export default {
} }
this.dispatchStoreAction(this.storeActions.SAVE_VAPS, this.selectedVaps, false); this.dispatchStoreAction(this.storeActions.SAVE_VAPS, this.selectedVaps, false);
this.dispatchStoreAction(this.storeActions.SAVE_PROMOS, this.newValidatedPromos, false); this.dispatchStoreAction(this.storeActions.SAVE_PROMOS, this.allActivePromos, false);
const payment = this.$store.getters.payment; const payment = this.$store.getters.payment;
if (payment.isInsurance) { if (payment.isInsurance) {

View file

@ -2271,10 +2271,12 @@ export const actions = {
pageNameToLog: pageNameToLog, pageNameToLog: pageNameToLog,
}); });
if (validateResponse?.data?.serverData) {
context.commit( context.commit(
storeMutations.UPDATE_LINE_ITEMS_SERVER_DATA, storeMutations.UPDATE_LINE_ITEMS_SERVER_DATA,
validateResponse.data.lineItemsServerData validateResponse.data.serverData
); );
}
return validateResponse; return validateResponse;
}, },