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