From dab48288a821f962e2c9a004f7294ae9639cc444 Mon Sep 17 00:00:00 2001 From: V Date: Tue, 23 May 2023 03:22:48 +0200 Subject: TypingTweaks: Fix type error --- src/plugins/typingTweaks.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/typingTweaks.tsx b/src/plugins/typingTweaks.tsx index f84e452..b206831 100644 --- a/src/plugins/typingTweaks.tsx +++ b/src/plugins/typingTweaks.tsx @@ -89,7 +89,11 @@ const TypingUser = ErrorBoundary.wrap(function ({ user, guildId }: Props) { src={user.getAvatarURL(guildId, 128)} /> )} - {GuildMemberStore.getNick(guildId!, user.id) || !guildId && RelationshipStore.getNickname(user.id) || user.globalName || user.username} + {GuildMemberStore.getNick(guildId!, user.id) + || (!guildId && RelationshipStore.getNickname(user.id)) + || (user as any).globalName + || user.username + } ); }, { noop: true }); -- cgit