diff --git a/components/RoomCard/RoomCard.tsx b/components/RoomCard/RoomCard.tsx index c15bef4..6786b22 100644 --- a/components/RoomCard/RoomCard.tsx +++ b/components/RoomCard/RoomCard.tsx @@ -136,7 +136,7 @@ const Footer = ({ room, isLikedRooms }: CardProps) => {

- Available {room.available === true ? formatDate(room.availableDate) : 'Now'} + Available {room.available === true ? 'Now' : formatDate(room.availableDate)}

); diff --git a/pages/room/[id].tsx b/pages/room/[id].tsx index 31c35d4..d98f3dd 100644 --- a/pages/room/[id].tsx +++ b/pages/room/[id].tsx @@ -366,7 +366,7 @@ export default function RoomDetail() {
- {room.available === true ? `From ${formatDate(room.availableDate)}` : 'Available Now'} + {room.available === true ? 'Available Now' : `From ${formatDate(room.availableDate)}`}