aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/pronoundb/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/pronoundb/components')
-rw-r--r--src/plugins/pronoundb/components/PronounsProfileWrapper.tsx2
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;