This commit is contained in:
2025-04-13 06:01:07 -04:00
parent 4f78ada0fe
commit 8095c71bf9

View File

@@ -71,7 +71,6 @@ function Mobile() {
.then((data) => { .then((data) => {
if (data.message === "Friend request sent successfully") { if (data.message === "Friend request sent successfully") {
alert("Friend request sent!"); alert("Friend request sent!");
setRequests((prev: any) => [...prev, friendCode]);
setFriendCode(""); // Clear the input field setFriendCode(""); // Clear the input field
} else { } else {
alert(data.message || "Failed to send friend request."); alert(data.message || "Failed to send friend request.");