diff --git a/src/plugins/typingTweaks/index.tsx b/src/plugins/typingTweaks/index.tsx index ebe12b5d9..8b292c1fd 100644 --- a/src/plugins/typingTweaks/index.tsx +++ b/src/plugins/typingTweaks/index.tsx @@ -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 ; - - return c; + return ; }); } catch (e) { console.error(e);