Skip to content

Commit d06a492

Browse files
committed
fixup! Change default properties from null to undefined (#662)
1 parent 8a9ce17 commit d06a492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Modal/_hooks/useModalFocus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const useModalFocus = (
1616

1717
const dialogElement = dialogRef.current;
1818

19-
if (dialogElement == null) {
19+
if (dialogElement === undefined) {
2020
return () => {};
2121
}
2222

0 commit comments

Comments
 (0)