mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-07-18 15:52:38 -05:00
refactor(time-tracking): drop the now-redundant duration clamp in the entry list
This commit is contained in:
@@ -182,7 +182,7 @@ watch(() => props.entries, entries => {
|
||||
|
||||
function entrySeconds(entry: ITimeEntry): number {
|
||||
const end = entry.endTime ?? new Date()
|
||||
return Math.max(0, Math.floor((end.getTime() - entry.startTime.getTime()) / 1000))
|
||||
return Math.floor((end.getTime() - entry.startTime.getTime()) / 1000)
|
||||
}
|
||||
|
||||
const rows = computed(() => props.entries.map(entry => {
|
||||
|
||||
Reference in New Issue
Block a user