diff --git a/src/app/(app)/profile/page.tsx b/src/app/(app)/profile/page.tsx index 1a92bd3..cbc3598 100644 --- a/src/app/(app)/profile/page.tsx +++ b/src/app/(app)/profile/page.tsx @@ -151,9 +151,8 @@ function Mobile() { method: "POST", body: formData, }) - .then((res) => res.json()) - .then((data) => { - if (data.message === "Friend removed successfully") { + .then((res) => { + if (res.ok) { alert("Friend removed successfully!"); } else { alert("Failed to remove friend."); @@ -211,6 +210,27 @@ function Mobile() { + {/* Points and Cosmetics Owned */} +
+

+ Points & Cosmetics +

+ + {/* Total Points */} +
+

+ Total Points: {points} +

+
+ + {/* Cosmetics Owned */} +
+

+ Cosmetics Owned: {session?.inventory?.length || 0} +

+
+
+ {/* Friends, Friend Requests, and Send Friend Request Section */}