Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianMF1 committed Apr 21, 2024
1 parent 5307705 commit 51a3790
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/userpages/register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ function Register() {
e.preventDefault();
console.log(user);
try {
const response = await axios.post("https://flightsbooking.me/users", user);
const response = await axios.post(
"https://flightsbooking.me/users",
user,
);
if (response.status === 200) {
navigate("/");
} else {
console.log(error);
console.log("error al registrar, si llego reponse");
}
} catch (error) {
console.error("Error al registrar:", error);
Expand Down

0 comments on commit 51a3790

Please sign in to comment.