diff options
author | V <vendicated@riseup.net> | 2023-08-03 00:12:48 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-08-03 00:13:04 +0200 |
commit | bb7deeb09cb263d158de0d99e873c3d3f43a73bb (patch) | |
tree | 00e4676823b13a2e96d60033924da4477d02f6d3 /src/plugins/userVoiceShow/index.tsx | |
parent | 0407be98477e90b3693827f4e1df6df857053009 (diff) | |
download | Vencord-bb7deeb09cb263d158de0d99e873c3d3f43a73bb.tar.gz Vencord-bb7deeb09cb263d158de0d99e873c3d3f43a73bb.tar.bz2 Vencord-bb7deeb09cb263d158de0d99e873c3d3f43a73bb.zip |
UserVoiceShow: Fix error
Diffstat (limited to 'src/plugins/userVoiceShow/index.tsx')
-rw-r--r-- | src/plugins/userVoiceShow/index.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
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 |