Skip to content

Commit d6ce982

Browse files
author
Juan Gabriel Guzman
committed
refactor: #385 Renaming variable name
1 parent f3c5b4f commit d6ce982

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/modules/time-entries/pages/time-entries.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export class TimeEntriesComponent implements OnInit {
4848
if (this.activeTimeEntry !== null && this.activeTimeEntry !== undefined) {
4949
const entryDateAsIso = new Date(event.entry.start_date).toISOString();
5050
const entryDateAsLocalDate = new Date(entryDateAsIso);
51-
const activeEntryAsLocaldate = new Date(this.activeTimeEntry.start_date);
51+
const activeEntryAsLocalDate = new Date(this.activeTimeEntry.start_date);
5252
const isEditingActiveEntry = this.entryId === this.activeTimeEntry.id;
53-
if (!isEditingActiveEntry && entryDateAsLocalDate > activeEntryAsLocaldate) {
53+
if (!isEditingActiveEntry && entryDateAsLocalDate > activeEntryAsLocalDate) {
5454
this.toastrService.error('You are on the clock and this entry overlaps it, try with earlier times.');
5555
} else {
5656
this.doSave(event);

0 commit comments

Comments
 (0)