feat(SW-415): Normalize roomSchema
This commit is contained in:
@@ -53,16 +53,16 @@ export default function RoomCard({
|
||||
}
|
||||
|
||||
const roomSize = roomCategories.find(
|
||||
(category) => category.attributes.name === roomConfiguration.roomType
|
||||
)?.attributes.roomSize
|
||||
(category) => category.name === roomConfiguration.roomType
|
||||
)?.roomSize
|
||||
|
||||
const occupancy = roomCategories.find(
|
||||
(category) => category.attributes.name === roomConfiguration.roomType
|
||||
)?.attributes.occupancy.total
|
||||
(category) => category.name === roomConfiguration.roomType
|
||||
)?.occupancy.total
|
||||
|
||||
const roomDescription = roomCategories.find(
|
||||
(room) => room.attributes.name === roomConfiguration.roomType
|
||||
)?.attributes.content.texts.descriptions.short
|
||||
(room) => room.name === roomConfiguration.roomType
|
||||
)?.descriptions.short
|
||||
|
||||
return (
|
||||
<div className={styles.card}>
|
||||
|
||||
Reference in New Issue
Block a user