1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-09 09:26:22 +00:00

fix typingTweaks

This commit is contained in:
Vendicated 2024-12-19 20:47:21 +01:00
parent 44c178ddd7
commit 33bca8e3ba
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -134,12 +134,11 @@ export default definePlugin({
let element = 0;
return children.map(c => {
if (c.type !== "strong" && !(typeof c !== "string" && !React.isValidElement(c)))
return c;
const user = users[element++];
if (c.type === "strong" || (typeof c !== "string" && !React.isValidElement(c)))
return <TypingUser key={user.id} guildId={guildId} user={user} />;
return c;
return <TypingUser key={user.id} guildId={guildId} user={user} />;
});
} catch (e) {
console.error(e);