diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 680d060dc..21c16d80b 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -489,24 +489,6 @@ export default { }); } - if (revalidatePromoResponse.promoLineItems.length > 0) { - await baseMixin.methods.dispatchStoreActionWithLogging( - storeActions.TAX_ORDER_ITEMS_AND_SAVE_SERVER_DATA, - { - billToAccountNumber: store.getters.payment.billToAccountNumber, - providerNumber: - this.$store.getters.order.serviceLocation.provider.providerNumber, - appointmentType: this.$store.getters.order.serviceLocation.appointmentType, - serviceLocationCity: this.$store.getters.order.serviceLocation.city, - serviceLocationState: this.$store.getters.order.serviceLocation.state, - serviceLocationZipCode: this.$store.getters.order.serviceLocation.zipCode, - pricedLineItems: revalidatePromoResponse.promoLineItems, - }, - "payment-method", - false - ); - } - const vapsToAddToCart = getVapsThatNeedToBeAddedToSatisfyPromos( revalidatePromoResponse.promoLineItems, this.availableVaps, @@ -520,6 +502,24 @@ export default { getPromoCodeWithoutBundleIdentifier(x.promoCode) ); + if (revalidatePromoResponse.promoLineItems.length > 0) { + await baseMixin.methods.dispatchStoreActionWithLogging( + storeActions.TAX_ORDER_ITEMS_AND_SAVE_SERVER_DATA, + { + billToAccountNumber: store.getters.payment.billToAccountNumber, + providerNumber: + this.$store.getters.order.serviceLocation.provider.providerNumber, + appointmentType: this.$store.getters.order.serviceLocation.appointmentType, + serviceLocationCity: this.$store.getters.order.serviceLocation.city, + serviceLocationState: this.$store.getters.order.serviceLocation.state, + serviceLocationZipCode: this.$store.getters.order.serviceLocation.zipCode, + pricedLineItems: this.lineItems, + }, + "payment-method", + false + ); + } + // SAVE PROMO CHANGES TO STORE this.dispatchStoreAction( storeActions.SAVE_ACTIVE_AND_OR_INACTIVE_PROMOS,