fix: handle back button
This commit is contained in:
@@ -23,12 +23,9 @@ import {
|
||||
import { Hotel } from "@/types/hotel"
|
||||
|
||||
function getAmenitiesList(hotel: Hotel) {
|
||||
const detailedAmenities: DetailedAmenity[] = hotel.hotelFacts
|
||||
.hotelFacilityDetail
|
||||
? Object.entries(hotel.hotelFacts.hotelFacilityDetail).map(
|
||||
([key, value]) => ({ name: key, ...value })
|
||||
)
|
||||
: []
|
||||
const detailedAmenities: DetailedAmenity[] = Object.entries(
|
||||
hotel.hotelFacts.hotelFacilityDetail
|
||||
).map(([key, value]) => ({ name: key, ...value }))
|
||||
|
||||
// Remove Parking facilities since parking accordion is based on hotel.parking
|
||||
const simpleAmenities = hotel.detailedFacilities.filter(
|
||||
|
||||
Reference in New Issue
Block a user