1
0
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:
Niranjana Binoy 2021-03-12 10:20:33 -05:00 committed by GitHub
parent 90bfaf6ac2
commit 84b1379b40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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