Skip to content

Commit

Permalink
fix: compare to undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
krocard committed Dec 7, 2023
1 parent 1fe872c commit d071e78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/PlayerView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,21 @@ export function PlayerView({

useEffect(() => {
const node = findNodeHandle(nativeView.current);
if (node && isFullscreenRequested) {
if (node && isFullscreenRequested != undefined) {

Check warning on line 128 in src/components/PlayerView/index.tsx

View workflow job for this annotation

GitHub Actions / Code style Typescript

Expected '!==' and instead saw '!='
dispatch('setFullscreen', node, isFullscreenRequested);
}
}, [isFullscreenRequested, nativeView]);

useEffect(() => {
const node = findNodeHandle(nativeView.current);
if (node && scalingMode) {
if (node && scalingMode != undefined) {

Check warning on line 135 in src/components/PlayerView/index.tsx

View workflow job for this annotation

GitHub Actions / Code style Typescript

Expected '!==' and instead saw '!='
dispatch('setScalingMode', node, scalingMode);
}
}, [scalingMode, nativeView]);

useEffect(() => {
const node = findNodeHandle(nativeView.current);
if (node && isPictureInPictureRequested) {
if (node && isPictureInPictureRequested != undefined) {

Check warning on line 142 in src/components/PlayerView/index.tsx

View workflow job for this annotation

GitHub Actions / Code style Typescript

Expected '!==' and instead saw '!='
dispatch('setPictureInPicture', node, isPictureInPictureRequested);
}
}, [isPictureInPictureRequested, nativeView]);
Expand Down

0 comments on commit d071e78

Please sign in to comment.