isSame granularity

This commit is contained in:
Adina Țeudan 2022-03-22 00:33:37 +02:00
parent 4a4dc2ec78
commit 08737703e4

View File

@ -56,7 +56,7 @@ export function hasFormChanged(form: FormGroup, initialFormValue: Record<string,
return true;
}
} else if (updatedValue instanceof dayjs) {
if (!(updatedValue as Dayjs).isSame(dayjs(initialValue))) {
if (!(updatedValue as Dayjs).isSame(dayjs(initialValue), 'day')) {
return true;
}
} else {