Merge pull request #1765 from Safelite/feature/csr-1973

Remove navigation exceptions for schedule, service-location.
This commit is contained in:
chloeherdsafelite 2024-02-21 09:07:32 -05:00 committed by GitHub
commit 122c7a0c1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,12 +36,7 @@ export async function getPageToRouteExistingOrderTo(toRoute = {}) {
// If navigating to a specific page, and that page is not part of the vin pages.
// Return that page, so that it can navigate like normal.
if (
toRoute.query[queryStrings.FMG_PAGE] !== undefined &&
toRoute.query[queryStrings.FMG_PAGE] !== fmgPageValues.SERVICE_LOCATION &&
toRoute.query[queryStrings.FMG_PAGE] !== fmgPageValues.SCHEDULE &&
!isVinRelatedPage(toRoute)
) {
if (toRoute.query[queryStrings.FMG_PAGE] !== undefined && !isVinRelatedPage(toRoute)) {
return overrideYmmsDirectionIfNeeded(toRoute);
}