Skip to content

Commit 2578a44

Browse files
committed
Use createDeepEqualSelector for getInternalAccounts to respond to nested state updates
1 parent 4d76a06 commit 2578a44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/selectors/accounts.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
} from '@metamask/keyring-api';
88
import { InternalAccount } from '@metamask/keyring-internal-api';
99
import { AccountsControllerState } from '@metamask/accounts-controller';
10-
import { createSelector } from 'reselect';
1110
import { KnownCaipNamespace, parseCaipChainId } from '@metamask/utils';
1211
import { createDeepEqualSelector } from '../../shared/modules/selectors/util';
1312
import { isEqualCaseInsensitive } from '../../shared/modules/string-utils';
@@ -32,7 +31,7 @@ export function isNonEvmAccount(account: InternalAccount) {
3231
);
3332
}
3433

35-
export const getInternalAccounts = createSelector(
34+
export const getInternalAccounts = createDeepEqualSelector(
3635
getInternalAccountsObject,
3736
(accounts) => Object.values(accounts),
3837
);

0 commit comments

Comments
 (0)