Removing alerts from registration
This commit is contained in:
@@ -78,11 +78,9 @@ const Register = () => {
|
||||
throw new Error(data.message || "Registration failed");
|
||||
}
|
||||
|
||||
alert("Registration successful!");
|
||||
navigate("/login");
|
||||
} catch (err) {
|
||||
console.error("Register error:", err);
|
||||
alert("Network or server error occurred.");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user