Skip to content

Commit

Permalink
Filter authorized accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda committed Apr 22, 2024
1 parent d9302b3 commit eadc756
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,14 @@ export default class UserAddonManagerComponent extends Component<Args> {
}

get currentTypeAuthorizedAccounts() {
return this.filterTypeMapper[this.activeFilterType].authorizedAccounts;
const allAccounts = this.filterTypeMapper[this.activeFilterType].authorizedAccounts;
const filteredAccounts = (allAccounts as AllAuthorizedAccountTypes[]).filter(
(account: AllAuthorizedAccountTypes) => {
const lowerCaseDisplayName = account.displayName.toLowerCase();
return lowerCaseDisplayName.includes(this.filterText.toLowerCase());
},
);
return filteredAccounts;
}

get filteredAddonProviders() {
Expand Down

0 comments on commit eadc756

Please sign in to comment.