Skip to content

Commit 73e73f4

Browse files
committed
Refactor sumDates function
1 parent 5b78fcc commit 73e73f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/modules/reports/components/time-entries-table/time-entries-table.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
141141
return prev.add(cur);
142142
},
143143
moment.duration(arrayDurations[0]));
144-
let daysInHours = totalDurations.days() >= 1 ? totalDurations.days() * 24 : 0;
144+
let daysInHours = totalDurations.days() * 24;
145145
this.resultSum.hours=totalDurations.hours() + daysInHours;
146146
this.resultSum.minutes = totalDurations.minutes();
147147
this.resultSum.seconds = totalDurations.seconds();

0 commit comments

Comments
 (0)