Skip to content

Commit 7bb5ef5

Browse files
Add clarifying comment for event transition logic
Co-authored-by: rezwana-karim <126201034+rezwana-karim@users.noreply.github.com>
1 parent ba77dac commit 7bb5ef5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client/src/components/Countdown.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export default function Countdown({ className = '' }: CountdownProps) {
7777
const difference = target - now;
7878

7979
if (difference <= 0) {
80+
// Event just passed, will find next event on next tick
8081
setTimeLeft({ days: 0, hours: 0, minutes: 0, seconds: 0 });
8182
return;
8283
}

0 commit comments

Comments
 (0)