mirror of
https://github.com/Ichitux/lambada-fiesta-live.git
synced 2026-09-27 22:22:21 +00:00
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 {
|
||||
|
||||
Reference in New Issue
Block a user