Merged in fix/SW-2583-prod-stage-users-are- (pull request #2570)

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
This commit is contained in:
Hrishikesh Vaipurkar
2025-07-28 08:13:19 +00:00
parent 5d77be3f0e
commit 58af469e22

View File

@@ -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,