Skip to content

Commit 78ed78d

Browse files
committed
fix: type
1 parent ce6135c commit 78ed78d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ const ChannelWithContext = <
659659
const uploadAbortControllerRef = useRef<Map<string, AbortController>>(new Map());
660660

661661
const channelId = channel?.id || '';
662-
const pollCreationEnabled = !channel.disconnected && channel.id && channel?.getConfig()?.polls;
662+
const pollCreationEnabled = !channel.disconnected && !!channel?.id && channel?.getConfig()?.polls;
663663

664664
useEffect(() => {
665665
const initChannel = async () => {

0 commit comments

Comments
 (0)