From 58af469e2275c97e11ddddefd152380373337230 Mon Sep 17 00:00:00 2001 From: Hrishikesh Vaipurkar Date: Mon, 28 Jul 2025 08:13:19 +0000 Subject: [PATCH] Merged in fix/SW-2583-prod-stage-users-are- (pull request #2570) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(SW-2583): Added check if user tries to open another booking it should work * fix(SW-2583): Added check if user tries to open another booking it should work Approved-by: Matilda Landström --- apps/scandic-web/components/HotelReservation/MyStay/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/scandic-web/components/HotelReservation/MyStay/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/index.tsx index ee27d065e..7a494dbde 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/index.tsx @@ -75,8 +75,9 @@ export default async function MyStay(props: { const values = JSON.parse(bv) as AdditionalInfoCookieValue const firstName = values.firstName const email = values.email + const bvConfirmationNo = values.confirmationNumber - if (firstName && email) { + if (firstName && email && bvConfirmationNo === confirmationNumber) { bookingConfirmation = await findBooking( confirmationNumber, lastName,