mirror of https://github.com/embarklabs/embark.git
replace reduce by a map to fix case where array is empty
This commit is contained in:
parent
921c99b201
commit
1a20b7b9ae
|
@ -29,7 +29,7 @@ const Transactions = ({transactions}) => (
|
||||||
</Table.Header>
|
</Table.Header>
|
||||||
<Table.Body>
|
<Table.Body>
|
||||||
{
|
{
|
||||||
transactions.reduce((transaction) => {
|
transactions.map((transaction) => {
|
||||||
return (
|
return (
|
||||||
<Table.Row key={transaction.hash}>
|
<Table.Row key={transaction.hash}>
|
||||||
<Table.Col><Link to={`/embark/explorer/transactions/${transaction.hash}`}>{transaction.hash}</Link></Table.Col>
|
<Table.Col><Link to={`/embark/explorer/transactions/${transaction.hash}`}>{transaction.hash}</Link></Table.Col>
|
||||||
|
|
Loading…
Reference in New Issue