Cater for completely empty lists
This commit is contained in:
parent
d5373e26b8
commit
077f32dce6
@ -93,7 +93,7 @@ export default class Store {
|
||||
Promise
|
||||
.all(txhashes.map((txhash) => this._api.eth.getTransactionByHash(txhash)))
|
||||
.then((_transactions) => {
|
||||
const transactions = _transactions.filter((tx) => tx);
|
||||
const transactions = _transactions.filter((tx) => tx) || [];
|
||||
|
||||
this.addTransactions(
|
||||
transactions.reduce((transactions, tx, index) => {
|
||||
|
Loading…
Reference in New Issue
Block a user