Skip to content

Commit

Permalink
chore(ceremony): pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Swepool committed Oct 2, 2024
1 parent fb1263c commit 4fd4cb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ceremony/src/lib/components/Terminal/Timer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function fetchTimestamps() {
}
function updateCountdown() {
if (!startTimestamp || !expireTimestamp) return
if (!(startTimestamp && expireTimestamp)) return
const now = Date.now()
let targetTime: number
Expand Down Expand Up @@ -50,7 +50,7 @@ $effect(() => {
})
$effect(() => {
if (!startTimestamp || !expireTimestamp) return
if (!(startTimestamp && expireTimestamp)) return
const timer = setInterval(updateCountdown, 1000)
updateCountdown()
return () => clearInterval(timer)
Expand Down

0 comments on commit 4fd4cb6

Please sign in to comment.