Skip to content

Commit 6d1e4ee

Browse files
fix: Change tracked condition to make computed work (#4392)
1 parent ad09367 commit 6d1e4ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/components/modals/event-delete-modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export default class EventDeleteModal extends ModalBase {
88
@tracked confirmName = '';
99

1010
get isNameDifferent() {
11-
return this.eventName ? this.confirmName !== this.eventName : true;
11+
return this.confirmName !== this.eventName;
1212
}
1313
}

app/components/modals/user-delete-modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export default class UserDeleteModal extends ModalBase {
88
@tracked confirmEmail = '';
99

1010
get isEmailDifferent() {
11-
return this.userEmail ? this.confirmEmail !== this.userEmail : true;
11+
return this.confirmEmail !== this.userEmail;
1212
}
1313
}

0 commit comments

Comments
 (0)