Fixed error message appearing when deleting field

This commit is contained in:
Lucas Oliveira 2024-03-22 16:19:46 +01:00
commit ad8e016ab8

View file

@ -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}`,