Skip to content

Commit

Permalink
bug: fallback message for invalid (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
prathameshbelurkar committed Jul 1, 2024
1 parent 6b01bf0 commit 58b5667
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/features/bookings/BookingDetail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import ButtonText from "../../ui/ButtonText";
import Spinner from "../../ui/Spinner";
import Modal from "../../ui/Modal";
import ConfirmDelete from "../../ui/ConfirmDelete";
import Empty from "../../ui/Empty";

import { useMoveBack } from "../../hooks/useMoveBack";
import useBooking from "./useBooking";
Expand All @@ -35,6 +36,8 @@ function BookingDetail() {

if (isLoading || isCheckingOut) return <Spinner />;

if (!booking) return <Empty resourceName="booking" />;

const { status, id: bookingId } = booking;

const statusToTagName = {
Expand Down

0 comments on commit 58b5667

Please sign in to comment.