We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eacc592 commit 6581f82Copy full SHA for 6581f82
src/app/modules/time-entries/pages/time-entries.component.ts
@@ -40,7 +40,7 @@ export class TimeEntriesComponent implements OnInit {
40
}
41
42
saveEntry(entry): void {
43
- if (this.activeTimeEntry !== null) {
+ if (this.activeTimeEntry !== null && this.activeTimeEntry !== undefined) {
44
const entryDateAsIso = new Date(entry.start_date).toISOString();
45
const entryDateAsLocalDate = new Date(entryDateAsIso);
46
const activeEntryAsLocaldate = new Date(this.activeTimeEntry.start_date);
0 commit comments