Merge pull request #617 from Safelite/feature/digital/SSR-1125

SSR-1125 Fix Payment Method Pre Reqs
This commit is contained in:
Josh Dassinger 2024-04-12 14:31:49 -05:00 committed by GitHub
commit 4b01d5cb6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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() {