Fixed date until july
All checks were successful
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

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 {

View File

@@ -138,7 +138,7 @@
"hotelYes": "Yes",
"hotelNo": "No",
"nonHotelNote": "+50€ fee for not staying in hotel",
"validUntilJune": "From now until 1 June",
"validUntilJuly": "From now until 15 July",
"validUntilSeptember": "From now until 1 September",
"roomTypes": {
"individual": "Single Room",

View File

@@ -138,7 +138,7 @@
"hotelYes": "Sí",
"hotelNo": "No",
"nonHotelNote": "+50€ por no alojarse en hotel",
"validUntilJune": "Desde ahora hasta el 1 de junio",
"validUntilJuly": "Desde ahora hasta el 15 de julio",
"validUntilSeptember": "Desde ahora hasta el 1 de septiembre",
"roomTypes": {
"individual": "Habitación Individual",