Skip to content

Commit

Permalink
Fix UpdateBooking.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Dec 1, 2024
1 parent c0f4164 commit 685a4fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion backend/src/assets/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@

.msg p {
color: #333;
margin-top: 0;
}

/* Avatar */
Expand Down
6 changes: 6 additions & 0 deletions backend/src/pages/UpdateBooking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ const UpdateBooking = () => {

if (_booking) {
if (!helper.admin(_user) && (_booking.supplier as bookcarsTypes.User)._id !== _user._id) {
setLoading(false)
setNoMatch(true)
return
}

if (!_booking.driver) {
setLoading(false)
setNoMatch(true)
return
Expand Down

0 comments on commit 685a4fb

Please sign in to comment.