Skip to content

Commit

Permalink
feat: add detail to countdown text
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed Nov 11, 2024
1 parent fee40d3 commit 938ac60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/CountdownBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const totalDuration = endDate - startDate
function updateCountdown() {
const now = new Date()
const timeLeft = endDate - now
const elapsed = now - startDate
if (timeLeft <= 0) {
hoursLeft.value = 0
Expand Down Expand Up @@ -43,7 +42,7 @@ onUnmounted(() => {
<div class="progress" :style="{ width: percentComplete + '%' }"></div>
</div>
<div class="time-left">
{{ hoursLeft }}h {{ minutesLeft }}m remaining
{{ hoursLeft }}h {{ minutesLeft }}m remaining to cure ballots
</div>
</div>
</template>
Expand Down

0 comments on commit 938ac60

Please sign in to comment.