Skip to content

Commit

Permalink
fix(web): use type-strict equal when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
stevapple committed Oct 24, 2024
1 parent 9657627 commit 472b1be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/components/IFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function IFrame(props: Props): JSX.Element {
const iFrameRef = useRef<HTMLIFrameElement>(null)

const onIframeLoad = (): void => {
if (iFrameRef.current == null) {
if (iFrameRef.current === null) {
console.error('iFrameRef is null')
return
}
Expand Down Expand Up @@ -92,7 +92,7 @@ export default function IFrame(props: Props): JSX.Element {
}

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

const titleChangeEventListener = (): void => {
if (iFrameRef.current == null) {
if (iFrameRef.current === null) {
console.error('titleChangeEvent from iframe but iFrameRef is null')
return
}
Expand Down

0 comments on commit 472b1be

Please sign in to comment.