Fixed date until july
Deploy NPM app / Deploy NPM (push) Successful in 1m9s

This commit is contained in:
Antoni Nuñez Romeu
2026-06-01 15:31:43 +02:00
parent d466276e91
commit f31c2a2995
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -297,12 +297,12 @@ export const ROOM_TYPES: { id: RoomType }[] = [
*/
export function getFullPassPrice(): { price: number; isLastPrice: boolean; validUntilKey: string | null } {
const now = new Date();
const juneFirst = new Date("2026-06-01T00:00:00");
const julyFirst = new Date("2026-07-15T00:00:00");
const septemberFirst = new Date("2026-09-01T00:00:00");
const eventStart = new Date(EVENT_INFO.date);
if (now < juneFirst) {
return { price: 170, isLastPrice: false, validUntilKey: "validUntilJune" };
if (now < julyFirst) {
return { price: 170, isLastPrice: false, validUntilKey: "validUntilJuly" };
} else if (now < septemberFirst) {
return { price: 190, isLastPrice: false, validUntilKey: "validUntilSeptember" };
} else {