Merge pull request #1725 from Safelite/feature/skiener/CSR-1954

CSR-1954 | Service-location continue button bug fix
This commit is contained in:
scottkiener 2024-02-06 10:02:19 -05:00 committed by GitHub
commit b1b884c398
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -152,11 +152,11 @@ const MOBILE_FEE_PART_TYPE = "MOBILE FEE";
// DEFINE VALIDATION RULES
defineRule("mobile-location-required", (value) => {
if (
value.addressQuestions.streetAddress == "" ||
value.addressQuestions.city == "" ||
value.addressQuestions.state == "" ||
value.addressQuestions.zipCode == "" ||
value.isVehicleProtected == null
!value.addressQuestions.streetAddress ||
!value.addressQuestions.city ||
!value.addressQuestions.state ||
!value.addressQuestions.zipCode ||
!value.isVehicleProtected
) {
return errorMessages.MOBILE_LOCATION_REQUIRED;
}