Fixed error message appearing when deleting field
This commit is contained in:
parent
df621707f7
commit
ad8e016ab8
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ export default function InputComponent({
|
||||||
if (password) {
|
if (password) {
|
||||||
// check if all chars are •
|
// check if all chars are •
|
||||||
if (
|
if (
|
||||||
e.target.value.split("").every((char) => char === "•")
|
e.target.value.split("").every((char) => char === "•") && e.target.value !== ""
|
||||||
) {
|
) {
|
||||||
setErrorData({
|
setErrorData({
|
||||||
title: `Invalid characters: ${e.target.value}`,
|
title: `Invalid characters: ${e.target.value}`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue