SSR-1125 Fix Payment Method Pre Reqs

This commit is contained in:
Josh Dassinger 2024-04-12 14:24:09 -05:00
parent 117a5f191e
commit b7e08c9039

View file

@ -247,14 +247,22 @@ export default {
);
// Customer
const { firstName, lastName, phoneNumber, emailAddress } = useMainStore().order.customer;
const { firstName, lastName, emailAddress } = useMainStore().order.customer;
const customerReqs = !!(
firstName
&& lastName
&& phoneNumber
&& emailAddress
);
// Contact Info
const { contactInfo } = useMainStore().order;
const contactInfoReqs = !!(
contactInfo.firstName
&& contactInfo.lastName
&& contactInfo.servicePhone
&& contactInfo.emailAddress
);
return (
vehicleReqs
&& damageReqs
@ -262,6 +270,7 @@ export default {
&& serviceLocationReqs
&& scheduleReqs
&& customerReqs
&& contactInfoReqs
);
},
getPaymentMethodFromStore() {