mirror of
https://github.com/Ichitux/lambada-fiesta-live.git
synced 2026-06-09 23:54:58 +02:00
Fixed date until july
All checks were successful
Deploy NPM app / Deploy NPM (push) Successful in 1m9s
All checks were successful
Deploy NPM app / Deploy NPM (push) Successful in 1m9s
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user