diff --git a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx index 0fce9cf4e..139fb8a63 100644 --- a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx +++ b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx @@ -23,8 +23,6 @@ import { fetchPronouns, formatPronouns } from "../pronoundbUtils"; import { PronounMapping, UserProfilePronounsProps, UserProfileProps } from "../types"; export default function PronounsProfileWrapper(PronounsComponent: React.ElementType, props: UserProfilePronounsProps, profileProps: UserProfileProps) { - if (!profileProps) return null; - const user = UserStore.getUser(profileProps.userId) ?? {}; // Don't bother fetching bot or system users if (user.bot || user.system) return null; diff --git a/src/plugins/pronoundb/index.ts b/src/plugins/pronoundb/index.ts index 499a73a2c..802ede9c3 100644 --- a/src/plugins/pronoundb/index.ts +++ b/src/plugins/pronoundb/index.ts @@ -53,7 +53,7 @@ export default definePlugin({ // UserSettings if (pronounProps.includes("onPronounsChange")) return original; - return `Vencord.Plugins.plugins.PronounDB.PronounsProfileWrapper(${PronounComponent}, ${pronounProps}, ${fullProps})`; + return `${fullProps}&&Vencord.Plugins.plugins.PronounDB.PronounsProfileWrapper(${PronounComponent}, ${pronounProps}, ${fullProps})`; } } },