From bb7deeb09cb263d158de0d99e873c3d3f43a73bb Mon Sep 17 00:00:00 2001
From: V <vendicated@riseup.net>
Date: Thu, 3 Aug 2023 00:12:48 +0200
Subject: UserVoiceShow: Fix error

---
 src/plugins/userVoiceShow/index.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/plugins/userVoiceShow/index.tsx')

diff --git a/src/plugins/userVoiceShow/index.tsx b/src/plugins/userVoiceShow/index.tsx
index 3b6609b..9d8730b 100644
--- a/src/plugins/userVoiceShow/index.tsx
+++ b/src/plugins/userVoiceShow/index.tsx
@@ -51,6 +51,8 @@ const VoiceChannelField = ErrorBoundary.wrap(({ user }: UserProps) => {
     if (!channelId) return null;
 
     const channel = ChannelStore.getChannel(channelId);
+    if (!channel) return null;
+
     const guild = GuildStore.getGuild(channel.guild_id);
 
     if (!guild) return null; // When in DM call
-- 
cgit 

