diff --git a/ui/components/multichain/account-list-menu/account-list-menu.js b/ui/components/multichain/account-list-menu/account-list-menu.js index 772746daa6aa..468d50e534ad 100644 --- a/ui/components/multichain/account-list-menu/account-list-menu.js +++ b/ui/components/multichain/account-list-menu/account-list-menu.js @@ -62,8 +62,8 @@ import { import { getEnvironmentType } from '../../../../app/scripts/lib/util'; import { ENVIRONMENT_TYPE_POPUP } from '../../../../shared/constants/app'; import { getAccountLabel } from '../../../helpers/utils/accounts'; -import { HiddenAccountList } from './hidden-account-list'; import { hasCreatedBtcMainnetAccount } from '../../../selectors/accounts'; +import { HiddenAccountList } from './hidden-account-list'; const ACTION_MODES = { // Displays the search box and account list @@ -150,7 +150,9 @@ export const AccountListMenu = ({ const addSnapAccountEnabled = useSelector(getIsAddSnapAccountEnabled); ///: END:ONLY_INCLUDE_IF ///: BEGIN:ONLY_INCLUDE_IF(build-flask) - const isBtcMainnetAccountAlreadyCreated = useSelector(hasCreatedBtcMainnetAccount); + const isBtcMainnetAccountAlreadyCreated = useSelector( + hasCreatedBtcMainnetAccount, + ); ///: END:ONLY_INCLUDE_IF const [searchQuery, setSearchQuery] = useState(''); diff --git a/ui/selectors/accounts.test.ts b/ui/selectors/accounts.test.ts index 9a37a8199ea0..911cc0f48c1e 100644 --- a/ui/selectors/accounts.test.ts +++ b/ui/selectors/accounts.test.ts @@ -87,11 +87,10 @@ describe('Accounts Selectors', () => { describe('hasCreatedBtcMainnetAccount', () => { it('returns true if the BTC mainnet account has been created', () => { - const state = MOCK_STATE; + const state = MOCK_STATE; - expect(hasCreatedBtcMainnetAccount(state)).toBe(true); - }, - ); + expect(hasCreatedBtcMainnetAccount(state)).toBe(true); + }); it('returns false if the BTC mainnet account has not been created yet', () => { const state: AccountsState = { diff --git a/ui/selectors/accounts.ts b/ui/selectors/accounts.ts index 4e91af867d99..9500f4e5ff3d 100644 --- a/ui/selectors/accounts.ts +++ b/ui/selectors/accounts.ts @@ -4,8 +4,8 @@ import { InternalAccount, } from '@metamask/keyring-api'; import { AccountsControllerState } from '@metamask/accounts-controller'; -import { getSelectedInternalAccount, getInternalAccounts } from './selectors'; import { isBtcMainnetAddress } from '../../shared/lib/multichain'; +import { getSelectedInternalAccount, getInternalAccounts } from './selectors'; export type AccountsState = { metamask: AccountsControllerState;