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:
chloeherdsafelite 2024-02-08 11:42:05 -05:00 committed by GitHub
commit fa118dafcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()) {