Skip to content

Commit

Permalink
fix: fix stopwatch off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
frznvm0 authored and ErikBjare committed Jan 2, 2021
1 parent 710098d commit 737b3d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Stopwatch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ div
div.col-md-12
div(v-if="runningTimers.length > 0")
h3 Running
div(v-for="e in runningTimers")
div(v-for="e in runningTimers" :key="e.id")
stopwatch-entry(:event="e", :bucket_id="bucket_id", :now="now",
@delete="removeTimer", @update="updateTimer")
hr(style="margin: 0")
Expand All @@ -32,7 +32,7 @@ div
h3.mt-4.mb-4 History
div(v-for="k in Object.keys(timersByDate).sort().reverse()")
h5.mt-2.mb-1 {{ k }}
div(v-for="e in timersByDate[k]")
div(v-for="e in timersByDate[k]" :key="e.id")
stopwatch-entry(:event="e", :bucket_id="bucket_id", :now="now",
@delete="removeTimer", @update="updateTimer", @new="startTimer(e.data.label)")
hr(style="margin: 0")
Expand Down

0 comments on commit 737b3d0

Please sign in to comment.