mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-19 11:27:02 -04:00
even more plugin fixes
This commit is contained in:
parent
2133823bd3
commit
dddb28192c
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue