feat: contain logic for selecting price at the top level instead of on individual room card
This commit is contained in:
@@ -40,14 +40,10 @@ export async function NoRoomsAlert({
|
||||
})
|
||||
)
|
||||
|
||||
if (!availability) {
|
||||
if (!availability || availabilityError) {
|
||||
return null
|
||||
}
|
||||
|
||||
if (availabilityError) {
|
||||
// TODO: Handle error
|
||||
}
|
||||
|
||||
const noRoomsAvailable = availability.roomConfigurations.reduce(
|
||||
(acc, room) => {
|
||||
return acc && room.status === "NotAvailable"
|
||||
|
||||
Reference in New Issue
Block a user