From b7e08c9039d5fc7bc75ad248146063feb299c59f Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Fri, 12 Apr 2024 14:24:09 -0500 Subject: [PATCH] SSR-1125 Fix Payment Method Pre Reqs --- src/layouts/payment-method/payment-method.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index c5014290..f6ca964f 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -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() {