mirror of
https://github.com/Ichitux/lambada-fiesta-live.git
synced 2026-06-10 01:14:57 +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 } {
|
export function getFullPassPrice(): { price: number; isLastPrice: boolean; validUntilKey: string | null } {
|
||||||
const now = new Date();
|
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 septemberFirst = new Date("2026-09-01T00:00:00");
|
||||||
const eventStart = new Date(EVENT_INFO.date);
|
const eventStart = new Date(EVENT_INFO.date);
|
||||||
|
|
||||||
if (now < juneFirst) {
|
if (now < julyFirst) {
|
||||||
return { price: 170, isLastPrice: false, validUntilKey: "validUntilJune" };
|
return { price: 170, isLastPrice: false, validUntilKey: "validUntilJuly" };
|
||||||
} else if (now < septemberFirst) {
|
} else if (now < septemberFirst) {
|
||||||
return { price: 190, isLastPrice: false, validUntilKey: "validUntilSeptember" };
|
return { price: 190, isLastPrice: false, validUntilKey: "validUntilSeptember" };
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -138,7 +138,7 @@
|
|||||||
"hotelYes": "Yes",
|
"hotelYes": "Yes",
|
||||||
"hotelNo": "No",
|
"hotelNo": "No",
|
||||||
"nonHotelNote": "+50€ fee for not staying in hotel",
|
"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",
|
"validUntilSeptember": "From now until 1 September",
|
||||||
"roomTypes": {
|
"roomTypes": {
|
||||||
"individual": "Single Room",
|
"individual": "Single Room",
|
||||||
|
|||||||
@@ -138,7 +138,7 @@
|
|||||||
"hotelYes": "Sí",
|
"hotelYes": "Sí",
|
||||||
"hotelNo": "No",
|
"hotelNo": "No",
|
||||||
"nonHotelNote": "+50€ por no alojarse en hotel",
|
"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",
|
"validUntilSeptember": "Desde ahora hasta el 1 de septiembre",
|
||||||
"roomTypes": {
|
"roomTypes": {
|
||||||
"individual": "Habitación Individual",
|
"individual": "Habitación Individual",
|
||||||
|
|||||||
Reference in New Issue
Block a user