fix userutils (#1861)

This commit is contained in:
AutumnVN 2023-10-25 21:57:50 +07:00 committed by V
parent 788d22f9e9
commit 2478ffb695
6 changed files with 8 additions and 10 deletions

View file

@ -103,7 +103,7 @@ export function openImageModal(url: string, props?: Partial<React.ComponentProps
const openProfile = findByCodeLazy("friendToken", "USER_PROFILE_MODAL_OPEN");
export async function openUserProfile(id: string) {
const user = await UserUtils.fetchUser(id);
const user = await UserUtils.getUser(id);
if (!user) throw new Error("No such user: " + id);
const guildId = SelectedGuildStore.getGuildId();