From 3c90f560be781e290e64036ff580d67959870842 Mon Sep 17 00:00:00 2001 From: Matt Caimi Date: Thu, 15 Feb 2024 10:05:25 -0500 Subject: [PATCH] SSR-1063 forward button nav logic --- src/layouts/payment-method/payment-method.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 10ebc609..808c27a7 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -207,6 +207,18 @@ export default { }, async forwardButtonAction() { await useMainStore().savePaymentMethodChoice(this.paymentMethod); + + if (this.paymentMethod === paymentMethods.PAY_AT_TIME_OF_SERVICE) { + this.$router.navigate( + this.navigationScenarios.CLICKED_FORWARD, + this.$route + ); + } else { + this.$router.navigate( + this.navigationScenarios.CLICKED_PAY_NOW, + this.$route + ); + } } } };