Skip to content

Commit

Permalink
Fix broken code
Browse files Browse the repository at this point in the history
  • Loading branch information
wlsf82 committed Sep 28, 2023
1 parent 346e41b commit 5d149a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ document.querySelector('button[type="submit"]')
return showAndHideErrorMessage()
}
if (isPhoneRequired && !phoneField.value) {
// return showAndHideErrorMessage()
return showAndHideErrorMessage()
}
if (!emailField.value.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)) {
return showAndHideErrorMessage()
Expand Down

0 comments on commit 5d149a5

Please sign in to comment.