Unverified claim should go to heritage on back button from service location page.
This commit is contained in:
hiteshkumar87 2024-11-14 18:45:12 +05:30
parent a0796a595b
commit 58e13ed503

View file

@ -515,7 +515,11 @@ export default {
}, },
backButtonAction() { backButtonAction() {
const payment = store.getters.order.payment; const payment = store.getters.order.payment;
if (payment?.isInsurance && payment?.insuranceCoverage?.isVerified) { if (
payment?.isInsurance &&
(payment?.insuranceCoverage?.isVerified ||
store.getters.order.referralNumber.length === 6)
) {
navigateToHeritageFunnel({ shouldSaveSession: false }); navigateToHeritageFunnel({ shouldSaveSession: false });
} else { } else {
this.$router.navigateWithoutSaving( this.$router.navigateWithoutSaving(