Bug Fix
This commit is contained in:
@@ -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.");
|
||||||
|
|||||||
Reference in New Issue
Block a user