aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/pronoundb/components
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-11 18:58:30 +0100
committerVendicated <vendicated@riseup.net>2022-11-11 18:58:30 +0100
commita86452e7747e5982d488a04071579b732ac4cb75 (patch)
tree219d0045dcc7093ebfc46f475f3be81cbe0976b5 /src/plugins/pronoundb/components
parentdddb28192c0c6ed39a7726a5a37a9ef3c817023c (diff)
downloadVencord-a86452e7747e5982d488a04071579b732ac4cb75.tar.gz
Vencord-a86452e7747e5982d488a04071579b732ac4cb75.tar.bz2
Vencord-a86452e7747e5982d488a04071579b732ac4cb75.zip
fix react hook error
Diffstat (limited to 'src/plugins/pronoundb/components')
-rw-r--r--src/plugins/pronoundb/components/PronounsProfileWrapper.tsx2
1 files changed, 0 insertions, 2 deletions
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<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;