Cater for completely empty lists

This commit is contained in:
Jaco Greeff 2016-12-01 13:39:38 +01:00
parent d5373e26b8
commit 077f32dce6

View File

@ -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) => {