Skip to content

Commit 83cdc8b

Browse files
committed
fix(web): use type-strict equal when possible
1 parent 9657627 commit 83cdc8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/components/IFrame.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -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)