Merge pull request #723 from Safelite/feature/CSR-757

Added conditional in arePagePrerequisitesValid to check if order is r…
This commit is contained in:
Leah Schumann 2022-09-08 08:49:36 -04:00 committed by GitHub
commit 7600d0b181
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,6 +51,7 @@ import funnelSubHeader from "@/common-components/funnel-sub-header/funnel-sub-he
import radioServicePackage from "@/ux-components/radio-service-package/radio-service-package";
import cashOrInsuranceQuestion from "./cash-or-insurance-question/cash-or-insurance-question";
import textBlock from "@/common-components/text-block/text-block";
import store from "@/store";
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
import { Form } from "vee-validate";
@ -74,7 +75,10 @@ export default {
},
methods: {
arePagePrerequisitesValid() {
return true;
if (store.getters.order.damage.isRepair || store.getters.order.lineItems.glassParts.length > 0) {
return true;
}
return false;
}
},
computed: {