Skip to content

Commit 3090258

Browse files
committed
fix(web): use type-strict equal when possible
1 parent c58111f commit 3090258

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/src/components/IFrame.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function IFrame(props: Props): JSX.Element {
1414
const iFrameRef = useRef<HTMLIFrameElement>(null)
1515

1616
const onIframeLoad = (): void => {
17-
if (iFrameRef.current == null) {
17+
if (iFrameRef.current === null) {
1818
console.error('iFrameRef is null')
1919
return
2020
}
@@ -92,7 +92,7 @@ export default function IFrame(props: Props): JSX.Element {
9292
}
9393

9494
const hashChangeEventListener = (): void => {
95-
if (iFrameRef.current == null) {
95+
if (iFrameRef.current === null) {
9696
console.error('hashChangeEvent from iframe but iFrameRef is null')
9797
return
9898
}
@@ -113,7 +113,7 @@ export default function IFrame(props: Props): JSX.Element {
113113
}
114114

115115
const titleChangeEventListener = (): void => {
116-
if (iFrameRef.current == null) {
116+
if (iFrameRef.current === null) {
117117
console.error('titleChangeEvent from iframe but iFrameRef is null')
118118
return
119119
}

0 commit comments

Comments
 (0)