mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
Merge pull request #3724 from BlueWallet/crash
FIX: Address list would crash on lack of item
This commit is contained in:
commit
44a3eacda4
@ -19,11 +19,11 @@ export const getAddress = (wallet, index, isInternal) => {
|
||||
if (isInternal) {
|
||||
address = wallet._getInternalAddressByIndex(index);
|
||||
balance = totalBalance(wallet._balances_by_internal_index[index]);
|
||||
transactions = wallet._txs_by_internal_index[index].length;
|
||||
transactions = wallet._txs_by_internal_index[index]?.length;
|
||||
} else {
|
||||
address = wallet._getExternalAddressByIndex(index);
|
||||
balance = totalBalance(wallet._balances_by_external_index[index]);
|
||||
transactions = wallet._txs_by_external_index[index].length;
|
||||
transactions = wallet._txs_by_external_index[index]?.length;
|
||||
}
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user