diff --git a/src/plugins/typingTweaks/index.tsx b/src/plugins/typingTweaks/index.tsx index 69226e1c..85580310 100644 --- a/src/plugins/typingTweaks/index.tsx +++ b/src/plugins/typingTweaks/index.tsx @@ -60,8 +60,8 @@ interface Props { function typingUserColor(guildId: string, userId: string) { if (!settings.store.showRoleColors) return; - if (Settings.plugins.CustomUserColors.enabled) return getCustomColorString(userId, true); - return GuildMemberStore.getMember(guildId, userId)?.colorString; + const customColor = Settings.plugins.CustomUserColors.enabled ? getCustomColorString(userId, true) : null; + return customColor ?? GuildMemberStore.getMember(guildId, userId)?.colorString; } const TypingUser = ErrorBoundary.wrap(function ({ user, guildId }: Props) {