-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix deprecations in analytics, billing & account-settings
- Loading branch information
1 parent
11c3dbc
commit 7bba24d
Showing
8 changed files
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,19 +72,19 @@ export default class AccountSettingsSecurityMultiFactorAuthComponent extends Com | |
|
||
@computed('[email protected]') | ||
get isMFAEnabled() { | ||
return !!this.mfas.records?.findBy('enabled', true); | ||
return !!this.mfas.records?.find((it) => it.enabled === true); | ||
} | ||
|
||
@computed('[email protected]') | ||
get isEmailMFAEnabled() { | ||
const emailMFA = this.mfas.records?.findBy('isEmail', true); | ||
const emailMFA = this.mfas.records?.find((it) => it.isEmail === true); | ||
|
||
return emailMFA?.enabled ?? false; | ||
} | ||
|
||
@computed('[email protected]') | ||
get isAppMFAEnabled() { | ||
const appMFA = this.mfas.records?.findBy('isApp', true); | ||
const appMFA = this.mfas.records?.find((it) => it.isApp === true); | ||
|
||
return appMFA?.enabled ?? false; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters