mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 11:28:51 +01:00
Setting balance to 0x0 when the original value is undefined (#10634)
This commit is contained in:
parent
6563339cbc
commit
04f92a5f14
@ -286,7 +286,7 @@ export default class AccountTracker {
|
||||
return;
|
||||
}
|
||||
addresses.forEach((address, index) => {
|
||||
const balance = bnToHex(result[index]);
|
||||
const balance = result[index] ? bnToHex(result[index]) : '0x0';
|
||||
accounts[address] = { address, balance };
|
||||
});
|
||||
this.store.updateState({ accounts });
|
||||
|
Loading…
Reference in New Issue
Block a user