We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce6135c commit 78ed78dCopy full SHA for 78ed78d
package/src/components/Channel/Channel.tsx
@@ -659,7 +659,7 @@ const ChannelWithContext = <
659
const uploadAbortControllerRef = useRef<Map<string, AbortController>>(new Map());
660
661
const channelId = channel?.id || '';
662
- const pollCreationEnabled = !channel.disconnected && channel.id && channel?.getConfig()?.polls;
+ const pollCreationEnabled = !channel.disconnected && !!channel?.id && channel?.getConfig()?.polls;
663
664
useEffect(() => {
665
const initChannel = async () => {
0 commit comments