This commit is contained in:
Adina Țeudan 2021-08-14 18:14:12 +03:00
parent d46d42c05f
commit cf288b916b
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ export class EditDossierAttributesComponent implements EditDossierSectionInterfa
get changed() {
for (const attr of this.attributes) {
if (this.isDate(attr)) {
if (this.isDate(attr) && attr.value) {
if (!moment(attr.value).isSame(moment(this.currentAttrValue(attr)))) {
return true;
}

View File

@ -38,7 +38,7 @@ export class InitialsAvatarComponent extends AutoUnsubscribe implements OnChange
}
get disabled(): boolean {
return !this.user?.isActive;
return this.user && !this.user?.isActive;
}
private get _colorClass() {