Skip to content

Commit 2b10a48

Browse files
Update useErrors.ts
1 parent fc9a516 commit 2b10a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useErrors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function useErrors<T>({
7474
const error = deepGet(errors.current, k);
7575

7676
if ((isTouched && isFocusedOnce) || wasSubmitted.current) {
77-
const noError = error === false;
77+
const noError = error === false || error === undefined || error === null;
7878
return !noError;
7979
}
8080
return false;

0 commit comments

Comments
 (0)