From 5650538731b153c0231bd344054779530f64ae5c Mon Sep 17 00:00:00 2001 From: Hrishikesh Vaipurkar Date: Thu, 28 Nov 2024 09:17:27 +0100 Subject: [PATCH] fix: SW-1010 Fixed naming conventions --- components/GuestsRoomsPicker/index.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/components/GuestsRoomsPicker/index.tsx b/components/GuestsRoomsPicker/index.tsx index 6f3704f1c..875e53629 100644 --- a/components/GuestsRoomsPicker/index.tsx +++ b/components/GuestsRoomsPicker/index.tsx @@ -63,19 +63,19 @@ export default function GuestsRoomsPickerForm() { (document.querySelector("#booking-widget")?.getBoundingClientRect() .bottom ?? 0) - 50 - const innerContainerHt = document - .querySelector(".react-aria-Popover") + const innerContainerHeight = document + .querySelector(".guests_picker_popover") ?.getBoundingClientRect().height if ( maxHeight != containerHeight && - innerContainerHt && - maxHeight <= innerContainerHt + innerContainerHeight && + maxHeight <= innerContainerHeight ) { setContainerHeight(maxHeight) } else if ( containerHeight && - innerContainerHt && - maxHeight > innerContainerHt + innerContainerHeight && + maxHeight > innerContainerHeight ) { setContainerHeight(0) } @@ -98,6 +98,7 @@ export default function GuestsRoomsPickerForm() { }} />