diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 75f4454c5..62d2aa2f8 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -75,10 +75,7 @@ export default { }, methods: { arePagePrerequisitesValid() { - if (store.getters.order.damage.isRepair || store.getters.order.lineItems.glassParts.length > 0) { - return true; - } - return false; + return store.getters.order.damage.isRepair || (store.getters.order.lineItems?.glassParts != null && store.getters.order.lineItems.glassParts.length > 0); } }, computed: { diff --git a/src/router/index.js b/src/router/index.js index 7684e9f90..6983356fd 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -25,11 +25,6 @@ import { applicationConfig } from "../constants/application-config"; import quote from "@/layouts/quote/quote.vue"; const routes = [ - { - path: "/quote", // This is a temporary route for testing. - name: "quote", - component: quote, - }, { path: "/", name: "root",