Skip to content

Commit 346b079

Browse files
committed
prettier
1 parent c82070e commit 346b079

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/components/VideoPlayer/BaseVideoPlayer.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,16 @@ function BaseVideoPlayer({
157157
shouldUseSharedVideoElementRef.current = shouldUseSharedVideoElement;
158158
}, [shouldUseSharedVideoElement]);
159159

160-
useEffect(() => () => {
161-
if (shouldUseSharedVideoElementRef.current) {
162-
return;
163-
}
164-
// If it's not a shared video player, clear the video player ref.
165-
currentVideoPlayerRef.current = null;
166-
}, [currentVideoPlayerRef]);
160+
useEffect(
161+
() => () => {
162+
if (shouldUseSharedVideoElementRef.current) {
163+
return;
164+
}
165+
// If it's not a shared video player, clear the video player ref.
166+
currentVideoPlayerRef.current = null;
167+
},
168+
[currentVideoPlayerRef],
169+
);
167170

168171
// update shared video elements
169172
useEffect(() => {

0 commit comments

Comments
 (0)