fix: handle undefined values schemas
This commit is contained in:
@@ -150,13 +150,13 @@ export default function RoomCard({
|
||||
</div>
|
||||
|
||||
<div className={styles.specification}>
|
||||
{occupancy && (
|
||||
{occupancy?.total && (
|
||||
<Caption color="uiTextMediumContrast" className={styles.guests}>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: "booking.guests",
|
||||
},
|
||||
{ nrOfGuests: occupancy?.total }
|
||||
{ nrOfGuests: occupancy.total }
|
||||
)}
|
||||
</Caption>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user