File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
frontend/src/components/blocks/live-streaming-section Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ export const LiveStreamingSection = () => {
4141 } ;
4242
4343 const runningEvent = currentDay ?. runningEvents ?. filter ( ( event ) =>
44- ( event . livestreamingRoom ? [ event . livestreamingRoom ] : event . rooms ) . map ( ( room ) => room . id ) . includes ( currentRoom . id ) ,
44+ ( event . livestreamingRoom ? [ event . livestreamingRoom ] : event . rooms )
45+ . map ( ( room ) => room . id )
46+ . includes ( currentRoom . id ) ,
4547 ) ?. [ 0 ] ;
4648
4749 const hasLiveVideos = currentDay ?. rooms ?. some ( ( room ) => room . streamingUrl ) ;
@@ -162,7 +164,8 @@ const isRoomStreaming = (
162164) => {
163165 return runningEvents . some (
164166 ( event ) =>
165- ( event . livestreamingRoom ? [ event . livestreamingRoom ] : event . rooms ) . map ( ( room ) => room . id ) . includes ( room . id ) &&
166- event . type !== "custom" ,
167+ ( event . livestreamingRoom ? [ event . livestreamingRoom ] : event . rooms )
168+ . map ( ( room ) => room . id )
169+ . includes ( room . id ) && event . type !== "custom" ,
167170 ) ;
168171} ;
You can’t perform that action at this time.
0 commit comments