mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-09 09:26:22 +00:00
fix typingTweaks
This commit is contained in:
parent
44c178ddd7
commit
33bca8e3ba
1 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue