From 3bf841d25943521dc59bd7341a86d03147254b08 Mon Sep 17 00:00:00 2001 From: Ategon Date: Sun, 9 Feb 2025 18:43:03 -0500 Subject: [PATCH] Fix profile page --- src/app/u/[slug]/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/u/[slug]/page.tsx b/src/app/u/[slug]/page.tsx index b1ee308..86187c4 100644 --- a/src/app/u/[slug]/page.tsx +++ b/src/app/u/[slug]/page.tsx @@ -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();