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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user