From e5029db51a85bde5e0b27e55dcbd0d9e2c5d907d Mon Sep 17 00:00:00 2001 From: GamerBoss101 Date: Sun, 13 Apr 2025 06:16:26 -0400 Subject: [PATCH] Sucess Message Update --- src/app/(app)/profile/page.tsx | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) 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 */}