Skip to content
Snippets Groups Projects
Commit 0f47193b authored by paula_rodriguezslash's avatar paula_rodriguezslash
Browse files

errors in the alerts

parent 2ecc4c17
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ function BookingCard({ flight }: IBookingCard) {
navigate('/booking/payment-form', { state: { bookingInfo } });
} catch (error) {
console.error("Booking failed:", error);
alert("Failed to book flight. Please try again.");
alert("Failed to book flight. Please try again. Error: ${error.message}");
}
};
......
......@@ -77,7 +77,7 @@ const PaymentForm = () => {
}
} catch (error) {
console.error('Payment confirmation failed:', error);
setMessage("An error occurred while confirming the payment.");
setMessage("An error occurred while confirming the payment. Error: ${error.message}");
} finally {
setLoading(false);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment