Merged in fix/booking-flow-eslint-fix (pull request #3342)
fix: Upgrade booking-flow eslint config * Upgrade booking-flow eslint config Approved-by: Bianca Widstam
This commit is contained in:
@@ -38,6 +38,7 @@ export async function BookingConfirmationPage({
|
||||
}
|
||||
|
||||
const expire = Number(decrypt(sig))
|
||||
// eslint-disable-next-line react-hooks/purity
|
||||
const now = Math.floor(Date.now() / 1000)
|
||||
if (typeof expire === "number" && !isNaN(expire) && now > expire) {
|
||||
redirect(`/${lang}`)
|
||||
|
||||
Reference in New Issue
Block a user