code refactoring

This commit is contained in:
2024-08-19 22:24:38 +02:00
parent fd5e62e23b
commit 01e9da61eb

View File

@@ -66,7 +66,8 @@ const LiveStreamMonitorView: React.FC = () => {
return ( return (
<> <>
<LivestreamSpeedDial onOpen={() => setOpenDialog(s => !s)} onStopAll={stopAll} /> <LivestreamSpeedDial onOpen={() => setOpenDialog(s => !s)} onStopAll={stopAll} />
{progress && Object.keys(progress).length === 0 ? {
!progress || Object.keys(progress).length === 0 ?
<NoLivestreams /> : <NoLivestreams /> :
<Container maxWidth="xl" sx={{ mt: 4, mb: 8 }}> <Container maxWidth="xl" sx={{ mt: 4, mb: 8 }}>
<Paper sx={{ <Paper sx={{