Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

Commit

Permalink
another fix hopefully works
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaid-maker committed Dec 22, 2023
1 parent 0fb5021 commit e904ac9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/(dashboard)/u/[username]/chat/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const Chat = async () => {
const self = await getSelf();
const stream = await getStreamByUserId(self.id);

//if (!stream) {
// throw new Error("Stream not found");
//}
if (!stream) {
throw new Error("Stream not found");
}

return (
<div className="p-6">
Expand All @@ -20,17 +20,17 @@ const Chat = async () => {
<ToggleCard
field="isChatEnabled"
label="Enable Chat"
value={stream?.isChatEnabled}
value={stream.isChatEnabled}
/>
<ToggleCard
field="isChatDelayed"
label="Delay Chat"
value={stream?.isChatDelayed}
value={stream.isChatDelayed}
/>
<ToggleCard
field="isChatFollowersOnly"
label="Must be following to chat"
value={stream?.isChatFollowersOnly}
value={stream.isChatFollowersOnly}
/>
</div>
</div>
Expand Down

0 comments on commit e904ac9

Please # to comment.