Fixed some issues with the logic in arePagePrerequisitesValid

This commit is contained in:
Leah Schumann 2022-09-16 10:38:29 -04:00
parent 4773814a07
commit 200dcd12e4
2 changed files with 2 additions and 9 deletions

View file

@ -75,10 +75,8 @@ export default {
},
methods: {
arePagePrerequisitesValid() {
if (store.getters.order.damage.isRepair || store.getters.order.lineItems.glassParts.length > 0) {
return true;
}
return false;
store.getters.order.lineItems.glassParts = [];
return store.getters.order.damage.isRepair || (store.getters.order.lineItems?.glassParts != null && store.getters.order.lineItems.glassParts.length > 0);
}
},
computed: {

View file

@ -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",