Skip to content

Commit f33a9f0

Browse files
committed
hard code last christmas
1 parent 7cf9b04 commit f33a9f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/Startpage/Startpage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function Startpage(props: Props) {
125125

126126
// Show CHRISTMAS25 banner only until Dec 27 of the current year
127127
const now = new Date()
128-
const christmasEnd = new Date(now.getFullYear(), 11, 27, 23, 59, 59) // month is 0-based: 11 = December
128+
const christmasEnd = new Date(2025, 11, 27, 23, 59, 59) // month is 0-based: 11 = December
129129
const showChristmasBanner = now <= christmasEnd
130130
const discountCode = showChristmasBanner ? 'CHRISTMAS25' : null
131131
const discountAmount = "25%"

0 commit comments

Comments
 (0)