CSR-1392
unused parm passed to setupPia.
This commit is contained in:
parent
b77b284148
commit
f6bdd4a272
1 changed files with 6 additions and 13 deletions
|
|
@ -288,26 +288,19 @@ export default {
|
|||
|
||||
await this.dispatchStoreAction(storeActions.SAVE_PROMOS, this.lineItems.promos, false);
|
||||
|
||||
switch (this.paymentMethod) {
|
||||
case paymentMethods.CREDIT_CARD:
|
||||
this.setupPia(this.paymentMethod);
|
||||
break;
|
||||
case paymentMethods.PAYPAL:
|
||||
this.setupPia(this.paymentMethod);
|
||||
break;
|
||||
case paymentMethods.AFTERPAY:
|
||||
this.setupPia(this.paymentMethod);
|
||||
break;
|
||||
default:
|
||||
this.dispatchStoreAction(this.storeActions.SAVE_WORK_ORDER_FLAG, true, false);
|
||||
if (this.paymentMethod == paymentMethods.LATER) {
|
||||
this.dispatchStoreAction(this.storeActions.SAVE_WORK_ORDER_FLAG, true, false);
|
||||
await submitWorkOrder({ pageNameToLog: "payment-method" });
|
||||
this.$router.navigateWithoutSaving(
|
||||
this.navigationScenarios.CLICKED_FORWARD,
|
||||
this.$route
|
||||
);
|
||||
}
|
||||
else {
|
||||
this.setupPia();
|
||||
}
|
||||
},
|
||||
async setupPia(payNowType) {
|
||||
async setupPia() {
|
||||
this.$refs.loadingModal.showModal();
|
||||
|
||||
// since we're leaving the site for pia, clear any save session promises that we will not be able to resolve when we return
|
||||
|
|
|
|||
Loading…
Reference in a new issue