mirror of
https://github.com/Ategon/Jamjar.git
synced 2025-02-12 06:16:21 +00:00
Fix profile page
This commit is contained in:
parent
c6ee544528
commit
3bf841d259
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,8 @@ export default function UserPage() {
|
||||||
? `https://d2jam.com/api/v1/user?targetUserSlug=${slug}`
|
? `https://d2jam.com/api/v1/user?targetUserSlug=${slug}`
|
||||||
: `http://localhost:3005/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();
|
fetchUser();
|
||||||
|
|
Loading…
Reference in a new issue