Skip to content

Commit

Permalink
non-null assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jan 9, 2025
1 parent e26c68b commit 78bc920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const useFormResetListener = (
listener: (event: Event) => any,
) => {
useListener(document.body, 'reset', (ev) => {
if (libRef.current?.form === ev.target) {
if (libRef.current!.form === ev.target) {
listener(ev);
}
});
Expand Down

0 comments on commit 78bc920

Please sign in to comment.