fix switching streams in stream moderation view

This commit is contained in:
hzrd149 2023-09-29 11:09:55 -05:00
parent b5c749cf23
commit 6ee0737ed7
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ export default function useStreamChatTimeline(stream: ParsedStream) {
if (stream.ends && event.created_at > stream.ends) return false;
return !(hostMuteFilter(event) || muteFilter(event));
},
[hostMuteFilter, muteFilter],
[stream, hostMuteFilter, muteFilter],
);
const goal = useStreamGoal(stream);

View File

@ -130,7 +130,7 @@ function ZapMessagesCard({ stream, ...props }: Omit<CardProps, "children"> & { s
function StreamModerationDashboard({ stream }: { stream: ParsedStream }) {
return (
<Flex gap="2" overflow="hidden">
<Flex gap="2" overflow="hidden" height="100%">
<UserMuteCard stream={stream} flex={1} />
<ZapMessagesCard stream={stream} flex={1} />
<StreamChat stream={stream} flex={1} />