From 67fe2e0177317acb3b53919a89a4633070f81442 Mon Sep 17 00:00:00 2001 From: CarlNation <32103961+CarlNation@users.noreply.github.com> Date: Wed, 25 Oct 2023 16:55:31 -0400 Subject: [PATCH] CSR-1392 move promise reset to after we await all save sessions (submitWOrkOrder) --- src/layouts/payment-method/payment-method.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(