mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Setting balance to 0x0 when the original value is undefined (#10634)
This commit is contained in:
parent
90bfaf6ac2
commit
84b1379b40
@ -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