Skip to content
Closed
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
Next Next commit
fix: TT-289 added an extra comparison to make sure the update date is…
… being saved
  • Loading branch information
bytesantiago committed Jul 20, 2021
commit 438279f209012664f8ffcdeb053f6def38f49a6c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
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 = updatedHour === initialHour;
const dateHasNotChanged = (initialDate === updatedDate) && (updatedHour === initialHour);
const result = dateHasNotChanged ? initialDate : updatedDate;
return result;
}
Expand Down