Skip to content

Commit 2fbcf46

Browse files
committed
chore(addons): Simplify computed property
1 parent ae067ad commit 2fbcf46

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app/shared/components/addons/addon-setup-account-form/addon-setup-account-form.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ export class AddonSetupAccountFormComponent {
6262
return format === CredentialsFormat.OAUTH2 || format === CredentialsFormat.OAUTH;
6363
});
6464

65-
readonly hasConfigurableApiRoot = computed(() => {
66-
return this.addon().configurableApiRoot === true;
67-
});
65+
readonly hasConfigurableApiRoot = computed(() => !!this.addon().configurableApiRoot);
6866

6967
handleSubmit(): void {
7068
if (!this.isFormValid) return;

0 commit comments

Comments
 (0)