From 62c0d07fe0baa04399de1f6b9a8626fa72cf12f9 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Thu, 12 Sep 2024 17:47:43 +0200 Subject: [PATCH] ui: use enum state for spot ready checker --- .../Spots/SpotPlayer/components/SpotVideoContainer.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/app/components/Spots/SpotPlayer/components/SpotVideoContainer.tsx b/frontend/app/components/Spots/SpotPlayer/components/SpotVideoContainer.tsx index 0fe7a81ea..0dc8282d7 100644 --- a/frontend/app/components/Spots/SpotPlayer/components/SpotVideoContainer.tsx +++ b/frontend/app/components/Spots/SpotPlayer/components/SpotVideoContainer.tsx @@ -34,9 +34,7 @@ function SpotVideoContainer({ checkReady: () => Promise; }) { const [prevIsProcessing, setPrevIsProcessing] = React.useState(false); - const [processingState, setProcessingState] = React.useState( - ProcessingState.Unchecked - ); + const [processingState, setProcessingState] = React.useState(ProcessingState.Unchecked); const [isLoaded, setLoaded] = React.useState(false); const videoRef = React.useRef(null); const playbackTime = React.useRef(0);