replace reduce by a map to fix case where array is empty

This commit is contained in:
Jonathan Rainville 2018-10-03 11:45:39 -04:00 committed by Pascal Precht
parent 921c99b201
commit 1a20b7b9ae
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ const Transactions = ({transactions}) => (
</Table.Header>
<Table.Body>
{
transactions.reduce((transaction) => {
transactions.map((transaction) => {
return (
<Table.Row key={transaction.hash}>
<Table.Col><Link to={`/embark/explorer/transactions/${transaction.hash}`}>{transaction.hash}</Link></Table.Col>