diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 188078781..8c445597e 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -303,14 +303,12 @@ export default { 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 - await this.dispatchStoreAction(storeActions.RESET_SAVE_SESSION_PROMISE); - // if we don't have a work order in delete substatus, set the flag and submit if (!store.getters.order.workOrderNumber) { this.dispatchStoreAction(storeActions.SAVE_PIA_WORK_ORDER, true); await submitWorkOrder({ pageNameToLog: "payment-method" }); this.dispatchStoreAction(storeActions.SAVE_PIA_WORK_ORDER, false); + this.dispatchStoreAction(storeActions.RESET_SAVE_SESSION_PROMISE); } this.$router.navigateWithoutSaving(