Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Oct 31, 2024
1 parent ce6135c commit 78ed78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/src/components/Channel/Channel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ const ChannelWithContext = <
const uploadAbortControllerRef = useRef<Map<string, AbortController>>(new Map());

const channelId = channel?.id || '';
const pollCreationEnabled = !channel.disconnected && channel.id && channel?.getConfig()?.polls;
const pollCreationEnabled = !channel.disconnected && !!channel?.id && channel?.getConfig()?.polls;

useEffect(() => {
const initChannel = async () => {
Expand Down

0 comments on commit 78ed78d

Please sign in to comment.