From 0057d584e16bb0369d051861b44696c9d4f10e82 Mon Sep 17 00:00:00 2001 From: Ilija Vukotic Date: Tue, 26 Mar 2024 13:01:19 -0500 Subject: [PATCH] add return. --- views/profile.pug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/views/profile.pug b/views/profile.pug index c7c8100..525af60 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -51,7 +51,8 @@ block extra_scripts } if (prefs[i].type === 'email'){ if (prefs[i].value!=="" && isValidEmail(prefs[i].value)===false){ - alert(`Please input valid email for the ${prefs[i].name}`); + alert(`Please input valid email.`); + return; } data[prefs[i].id]=prefs[i].value; }