diff options
author | Vendicated <vendicated@riseup.net> | 2022-11-11 18:49:47 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-11-11 18:49:47 +0100 |
commit | dddb28192c0c6ed39a7726a5a37a9ef3c817023c (patch) | |
tree | 12bd6d025f28be76f0ab710a2564c83a0cb1e99b /src/plugins/pronoundb/components | |
parent | 2133823bd369efa145474f6e558a82a960d48d52 (diff) | |
download | Vencord-dddb28192c0c6ed39a7726a5a37a9ef3c817023c.tar.gz Vencord-dddb28192c0c6ed39a7726a5a37a9ef3c817023c.tar.bz2 Vencord-dddb28192c0c6ed39a7726a5a37a9ef3c817023c.zip |
even more plugin fixes
Diffstat (limited to 'src/plugins/pronoundb/components')
-rw-r--r-- | src/plugins/pronoundb/components/PronounsProfileWrapper.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx index 139fb8a..0fce9cf 100644 --- a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx +++ b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx @@ -23,6 +23,8 @@ import { fetchPronouns, formatPronouns } from "../pronoundbUtils"; import { PronounMapping, UserProfilePronounsProps, UserProfileProps } from "../types"; export default function PronounsProfileWrapper(PronounsComponent: React.ElementType<UserProfilePronounsProps>, 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; |