From 7e4788094a5e9f2f12e044be09228911a2393ecf Mon Sep 17 00:00:00 2001 From: Lincoln Lee Date: Wed, 18 Feb 2026 23:29:23 -0800 Subject: [PATCH] fix: make countdown hang on app deadline unless rsvp is open --- src/components/hero/Countdown.jsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/hero/Countdown.jsx b/src/components/hero/Countdown.jsx index 636522c7..015b5148 100644 --- a/src/components/hero/Countdown.jsx +++ b/src/components/hero/Countdown.jsx @@ -176,6 +176,18 @@ const Countdown = () => { return } + if (!portalData.rsvpOpen?.[TARGET_HACKATHON]) { + const appDeadline = { + key: 'applicationDeadline', + label: 'Applications close in:', + value: portalData.applicationDeadline?.[TARGET_HACKATHON], + hackathon: TARGET_HACKATHON, + timestamp: parseIsoDateString(portalData.applicationDeadline?.[TARGET_HACKATHON]) || 0, + } + setTargetInfo(appDeadline) + return + } + const candidates = [ { key: 'applicationDeadline',