SSR-1063 forward button nav logic

This commit is contained in:
Matt Caimi 2024-02-15 10:05:25 -05:00
parent 1580a7761a
commit 3c90f560be

View file

@ -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
);
}
}
}
};