1
0
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:
Niranjana Binoy 2021-03-12 10:20:33 -05:00 committed by Dan Miller
parent 6563339cbc
commit 04f92a5f14

View File

@ -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 });