Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharly committed Jul 10, 2024
1 parent 11f450e commit eb4ea27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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('');
Expand Down
7 changes: 3 additions & 4 deletions ui/selectors/accounts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion ui/selectors/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eb4ea27

Please sign in to comment.