This commit is contained in:
Abhinav 2022-06-19 16:18:47 +05:30
parent 8f2b1b0be6
commit 283797dd4a

View file

@ -45,7 +45,10 @@ export default function UploadProgress({
const [expanded, setExpanded] = useState(true); const [expanded, setExpanded] = useState(true);
useEffect(() => { useEffect(() => {
if (appContext.watchServiceIsRunning && watchService.isUploadRunning) { if (
appContext.watchServiceIsRunning &&
watchService.isUploadRunning()
) {
setExpanded(false); setExpanded(false);
} }
}, [appContext.watchServiceIsRunning]); }, [appContext.watchServiceIsRunning]);