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 skipVin = await skipVinLookup();
|
||||
const isInsuranceUser = !!store.getters.order.payment.isInsurance;
|
||||
|
||||
if (!vehicleDamageComponent.methods.arePagePrerequisitesValid()) {
|
||||
return fmgPageValues.VEHICLE;
|
||||
} else if (!estimateComponent.methods.arePagePrerequisitesValid()) {
|
||||
return fmgPageValues.VEHICLE_DAMAGE;
|
||||
} else {
|
||||
if (isInsuranceUser) {
|
||||
if (scheduleComponent.methods.arePagePrerequisitesValid()) {
|
||||
return fmgPageValues.SCHEDULE;
|
||||
} else if (serviceLocationComponent.methods.arePagePrerequisitesValid()) {
|
||||
return fmgPageValues.SERVICE_LOCATION;
|
||||
}
|
||||
}
|
||||
if (quoteComponent.methods.arePagePrerequisitesValid()) {
|
||||
return fmgPageValues.QUOTE;
|
||||
} else if (capabilityQuestionsComponent.methods.arePagePrerequisitesValid()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue