Fix profile page

This commit is contained in:
Ategon 2025-02-09 18:43:03 -05:00
parent c6ee544528
commit 3bf841d259

View file

@ -17,7 +17,8 @@ export default function UserPage() {
? `https://d2jam.com/api/v1/user?targetUserSlug=${slug}`
: `http://localhost:3005/api/v1/user?targetUserSlug=${slug}`
);
setUser(await response.json());
const { data } = await response.json();
setUser(data);
};
fetchUser();