Skip to content

Commit 3079900

Browse files
authored
fix: safe call removeGroupChannelHandler in TypingIndicator (#218)
1 parent d3cc558 commit 3079900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/smart-components/Channel/components/TypingIndicator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const TypingIndicator: React.FC = () => {
6060

6161
return () => {
6262
setTypingMembers([]);
63-
if (sb) {
63+
if (sb?.groupChannel?.removeGroupChannelHandler) {
6464
sb.groupChannel.removeGroupChannelHandler(handlerId);
6565
}
6666
};

0 commit comments

Comments
 (0)