From 2311da273ee315cbc47e39138abedefc0d529199 Mon Sep 17 00:00:00 2001 From: Walmyr Date: Sun, 16 Jun 2024 20:01:51 +0200 Subject: [PATCH] Fix broken code --- src/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script.js b/src/script.js index a1c42903..da7f274d 100644 --- a/src/script.js +++ b/src/script.js @@ -31,7 +31,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()