mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 18:06:22 +00:00
MemberCount: Fix error when not in a channel (#2277)
This commit is contained in:
parent
5f11e84d66
commit
29a060981c
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ export function MemberCount({ isTooltip, tooltipGuildId }: { isTooltip?: true; t
|
||||||
|
|
||||||
const { groups } = useStateFromStores(
|
const { groups } = useStateFromStores(
|
||||||
[ChannelMemberStore],
|
[ChannelMemberStore],
|
||||||
() => ChannelMemberStore.getProps(guildId, currentChannel.id)
|
() => ChannelMemberStore.getProps(guildId, currentChannel?.id)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!isTooltip && (groups.length >= 1 || groups[0].id !== "unknown")) {
|
if (!isTooltip && (groups.length >= 1 || groups[0].id !== "unknown")) {
|
||||||
|
|
Loading…
Reference in a new issue