Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update details-fields.component.ts
  • Loading branch information
bytesantiago authored Jul 23, 2021
commit 981cfb812ec50b1df9d58149113958429682e492
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
const updatedHour = this.entryForm.value[hour];
const updatedDate = new Date(`${entryFormDate}T${updatedHour.trim()}`).toISOString();
const initialDate = get(this.entryToEdit, date, updatedDate);
const initialHour = formatDate(get(this.entryToEdit, date, updatedDate), 'HH:mm', 'en');
const dateHasNotChanged = (initialDate === updatedDate);
const result = dateHasNotChanged ? initialDate : updatedDate;
return result;
Expand Down