Merged in fix/SW-3018-payment-cancel-error (pull request #2339)
Fix/SW-3018 payment cancel error * fix(SW-3018): cancel payment error when get booking in callback * fix: wrong status code Approved-by: Linus Flood
This commit is contained in:
committed by
Linus Flood
parent
048a477e52
commit
98983cb44a
@@ -32,7 +32,7 @@ export async function getBooking(
|
||||
|
||||
// If the booking is not found, return null.
|
||||
// This scenario is expected to happen when a logged in user trying to access a booking that doesn't belong to them.
|
||||
if (apiResponse.status === 400) {
|
||||
if (apiResponse.status === 404) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user