Skip to content

Commit

Permalink
Update useErrors.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
robinlindhout authored Jan 17, 2025
1 parent fc9a516 commit 2b10a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function useErrors<T>({
const error = deepGet(errors.current, k);

if ((isTouched && isFocusedOnce) || wasSubmitted.current) {
const noError = error === false;
const noError = error === false || error === undefined || error === null;

Check failure on line 77 in src/useErrors.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `⏎·········`
return !noError;
}
return false;
Expand Down

0 comments on commit 2b10a48

Please sign in to comment.