Skip to content

Commit 78bc920

Browse files
committed
non-null assertion
1 parent e26c68b commit 78bc920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const useFormResetListener = (
4949
listener: (event: Event) => any,
5050
) => {
5151
useListener(document.body, 'reset', (ev) => {
52-
if (libRef.current?.form === ev.target) {
52+
if (libRef.current!.form === ev.target) {
5353
listener(ev);
5454
}
5555
});

0 commit comments

Comments
 (0)