From ad8e016ab835afe275787e045e6775c398eea9ed Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Fri, 22 Mar 2024 16:19:46 +0100 Subject: [PATCH] Fixed error message appearing when deleting field --- src/frontend/src/components/inputComponent/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/inputComponent/index.tsx b/src/frontend/src/components/inputComponent/index.tsx index 1f7e633b4..2b8c9c0e3 100644 --- a/src/frontend/src/components/inputComponent/index.tsx +++ b/src/frontend/src/components/inputComponent/index.tsx @@ -127,7 +127,7 @@ export default function InputComponent({ if (password) { // check if all chars are • if ( - e.target.value.split("").every((char) => char === "•") + e.target.value.split("").every((char) => char === "•") && e.target.value !== "" ) { setErrorData({ title: `Invalid characters: ${e.target.value}`,