diff --git a/src/app/(app)/profile/page.tsx b/src/app/(app)/profile/page.tsx index 8ea8b17..007169b 100644 --- a/src/app/(app)/profile/page.tsx +++ b/src/app/(app)/profile/page.tsx @@ -71,7 +71,6 @@ function Mobile() { .then((data) => { if (data.message === "Friend request sent successfully") { alert("Friend request sent!"); - setRequests((prev: any) => [...prev, friendCode]); setFriendCode(""); // Clear the input field } else { alert(data.message || "Failed to send friend request.");