Skip to content

Commit f8c7545

Browse files
committed
fix: properly use hook in channel preview
1 parent 32ab860 commit f8c7545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/components/ChannelPreview/hooks/useChannelPreviewData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const useChannelPreviewData = <
1919
| MessageResponse<StreamChatGenerics>
2020
>(channel.state.messages[channel.state.messages.length - 1]);
2121
const [unread, setUnread] = useState(channel.countUnread());
22-
const { muted } = useIsChannelMuted(channel);
22+
const muted = useIsChannelMuted(channel);
2323

2424
/**
2525
* This effect listens for the `notification.mark_read` event and sets the unread count to 0

0 commit comments

Comments
 (0)