fix(SW-3442) getLowestRoomPrice - cannot read property of undefined
* fix: getLowestRoomPrice throws when given unexpected data * dont track lowestRoomPrice if unavailable Approved-by: Hrishikesh Vaipurkar
This commit is contained in:
@@ -36,7 +36,7 @@ export function RoomsContainer({}: RoomsContainerProps) {
|
||||
const lowestRoomPrice = getLowestRoomPrice()
|
||||
const booking = inputData?.booking
|
||||
|
||||
if (!booking) return
|
||||
if (!booking || !lowestRoomPrice) return
|
||||
|
||||
trackLowestRoomPrice({
|
||||
hotelId: booking.hotelId,
|
||||
|
||||
Reference in New Issue
Block a user