aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-23 03:22:48 +0200
committerV <vendicated@riseup.net>2023-05-23 03:22:48 +0200
commitdab48288a821f962e2c9a004f7294ae9639cc444 (patch)
tree430385361ee16974c6a7781a220fa4e8b825390e /src
parent9aef97c77114d53aabdd08cdb0ae628418071e73 (diff)
downloadVencord-dab48288a821f962e2c9a004f7294ae9639cc444.tar.gz
Vencord-dab48288a821f962e2c9a004f7294ae9639cc444.tar.bz2
Vencord-dab48288a821f962e2c9a004f7294ae9639cc444.zip
TypingTweaks: Fix type error
Diffstat (limited to 'src')
-rw-r--r--src/plugins/typingTweaks.tsx6
1 files changed, 5 insertions, 1 deletions
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)} />
</div>
)}
- {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
+ }
</strong>
);
}, { noop: true });