From 6b4a2be4cfe3e51b297fa91dc3c7458c7d204078 Mon Sep 17 00:00:00 2001 From: Linh Vo Date: Fri, 7 Feb 2025 08:31:02 +0700 Subject: [PATCH] fix: eslint fail --- src/components/VideoPlayer/BaseVideoPlayer.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/VideoPlayer/BaseVideoPlayer.tsx b/src/components/VideoPlayer/BaseVideoPlayer.tsx index 9249baa4743f..d177ef74ad1f 100644 --- a/src/components/VideoPlayer/BaseVideoPlayer.tsx +++ b/src/components/VideoPlayer/BaseVideoPlayer.tsx @@ -473,9 +473,10 @@ function BaseVideoPlayer({ videoPlayerRef.current?.setStatusAsync?.({rate: currentPlaybackSpeed}); }} onLoad={() => { - if (isCurrentlyURLSet && !isUploading) { - playVideo(); + if (!isCurrentlyURLSet || isUploading) { + return; } + playVideo(); }} onPlaybackStatusUpdate={handlePlaybackStatusUpdate} onFullscreenUpdate={handleFullscreenUpdate}