Merge pull request #1731 from Safelite/feature/csr-1951
Also remove ability for non-cash users to be routed past quote.
This commit is contained in:
commit
fa118dafcb
1 changed files with 0 additions and 8 deletions
|
|
@ -123,20 +123,12 @@ async function getLatestPageForRedirection() {
|
||||||
const scheduleComponent = await getLazyLoadedComponent(fmgPageValues.SCHEDULE);
|
const scheduleComponent = await getLazyLoadedComponent(fmgPageValues.SCHEDULE);
|
||||||
|
|
||||||
const skipVin = await skipVinLookup();
|
const skipVin = await skipVinLookup();
|
||||||
const isInsuranceUser = !!store.getters.order.payment.isInsurance;
|
|
||||||
|
|
||||||
if (!vehicleDamageComponent.methods.arePagePrerequisitesValid()) {
|
if (!vehicleDamageComponent.methods.arePagePrerequisitesValid()) {
|
||||||
return fmgPageValues.VEHICLE;
|
return fmgPageValues.VEHICLE;
|
||||||
} else if (!estimateComponent.methods.arePagePrerequisitesValid()) {
|
} else if (!estimateComponent.methods.arePagePrerequisitesValid()) {
|
||||||
return fmgPageValues.VEHICLE_DAMAGE;
|
return fmgPageValues.VEHICLE_DAMAGE;
|
||||||
} else {
|
} else {
|
||||||
if (isInsuranceUser) {
|
|
||||||
if (scheduleComponent.methods.arePagePrerequisitesValid()) {
|
|
||||||
return fmgPageValues.SCHEDULE;
|
|
||||||
} else if (serviceLocationComponent.methods.arePagePrerequisitesValid()) {
|
|
||||||
return fmgPageValues.SERVICE_LOCATION;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (quoteComponent.methods.arePagePrerequisitesValid()) {
|
if (quoteComponent.methods.arePagePrerequisitesValid()) {
|
||||||
return fmgPageValues.QUOTE;
|
return fmgPageValues.QUOTE;
|
||||||
} else if (capabilityQuestionsComponent.methods.arePagePrerequisitesValid()) {
|
} else if (capabilityQuestionsComponent.methods.arePagePrerequisitesValid()) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue