From a86452e7747e5982d488a04071579b732ac4cb75 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 11 Nov 2022 18:58:30 +0100 Subject: fix react hook error --- src/plugins/pronoundb/components/PronounsProfileWrapper.tsx | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/plugins/pronoundb/components') diff --git a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx index 0fce9cf..139fb8a 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; -- cgit