CASH-80 request insurance company page and let nextgen decide

CASH-80 request insurance company page and let nextgen decide
This commit is contained in:
CarlNation 2025-01-07 13:21:52 -05:00
parent d2ae8a5237
commit 02183aab9f
2 changed files with 5 additions and 2 deletions

View file

@ -45,7 +45,7 @@ export async function getDirectNavigation(toRoute) {
if (fmgPageValue === fmgPageValues.QUOTE) {
const skipVin = await skipVinLookup();
if (skipVin) {
if (skipVin || !store.getters.vehicle?.vin) {
return fmgPageValues.ESTIMATE;
} else {
return fmgPageValues.VIN_LOOKUP;

View file

@ -157,7 +157,10 @@ const routes = [
// Reroute around pages that should not be available.
// Exception 1: Integrated Users should not see vehicle or quote pages.
if (store.getters.payment?.insuranceCoverage?.isVerified) {
if (
store.getters.payment?.insuranceCoverage?.isVerified ||
store.getters.order?.referralNumber?.length === 6
) {
if (to.query.fmgPage === fmgPageValues.VEHICLE) {
to.query.fmgPage = fmgPageValues.VEHICLE_DAMAGE;
} else if (