Skip to content

Commit

Permalink
Fix timer bug on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysse-bouchet committed Jan 21, 2025
1 parent b1c4596 commit 5285505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/layout/Timer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
timeRemaining = $endTimestamp - Date.now();
const timer = setInterval(() => {
timeRemaining -= SECOND;
timeRemaining = $endTimestamp - Date.now();
if (Math.floor(timeRemaining / SECOND) <= 0) {
console.log('entered');
clearInterval(timer);
Expand Down

0 comments on commit 5285505

Please sign in to comment.