feat(sw-697): Added default values

This commit is contained in:
Pontus Dreij
2024-11-04 16:36:24 +01:00
parent 6b5934e2d0
commit b4a015b47a
4 changed files with 19 additions and 9 deletions

View File

@@ -37,8 +37,8 @@ export default function RateSummary({
(pkg) => pkg.code === RoomPackageCodeEnum.PET_ROOM
)
const petRoomPrice = petRoomPackage?.localPrice?.totalPrice ?? null
const petRoomCurrency = petRoomPackage?.localPrice?.currency ?? null
const petRoomPrice = petRoomPackage?.localPrice.totalPrice ?? null
const petRoomCurrency = petRoomPackage?.localPrice.currency ?? null
const checkInDate = new Date(roomsAvailability.checkInDate)
const checkOutDate = new Date(roomsAvailability.checkOutDate)