mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
fix:fix error of balance fetching when add/import an account (#20612)
This commit is contained in:
parent
71357b225a
commit
c3f907fe4f
@ -764,9 +764,8 @@ export function getWeb3ShimUsageStateForOrigin(state, origin) {
|
||||
|
||||
export function getSwapsDefaultToken(state) {
|
||||
const selectedAccount = getSelectedAccount(state);
|
||||
const { balance } = selectedAccount;
|
||||
const balance = selectedAccount?.balance;
|
||||
const chainId = getCurrentChainId(state);
|
||||
|
||||
const defaultTokenObject = SWAPS_CHAINID_DEFAULT_TOKEN_MAP[chainId];
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user