Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
COM3014
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abdelsamad, Mouaz R (UG - SISC)
COM3014
Commits
0f47193b
Commit
0f47193b
authored
1 year ago
by
paula_rodriguezslash
Browse files
Options
Downloads
Patches
Plain Diff
errors in the alerts
parent
2ecc4c17
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/src/components/BookingList/BookingCard/BookingCard.tsx
+1
-1
1 addition, 1 deletion
...nt/src/components/BookingList/BookingCard/BookingCard.tsx
client/src/components/PaymentForm/PaymentForm.tsx
+1
-1
1 addition, 1 deletion
client/src/components/PaymentForm/PaymentForm.tsx
with
2 additions
and
2 deletions
client/src/components/BookingList/BookingCard/BookingCard.tsx
+
1
−
1
View file @
0f47193b
...
...
@@ -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}
"
);
}
};
...
...
This diff is collapsed.
Click to expand it.
client/src/components/PaymentForm/PaymentForm.tsx
+
1
−
1
View file @
0f47193b
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment