isSame granularity
This commit is contained in:
parent
4a4dc2ec78
commit
08737703e4
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user