hotfix: add keys in map

This commit is contained in:
George Lima 2018-12-21 12:43:12 -03:00
parent 571b11af4e
commit 5d0060194b
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
// @flow
import React from 'react';
import React, { Fragment } from 'react';
import styled from 'styled-components';
import { TransactionItemComponent, type Transaction } from './transaction-item';
@ -47,7 +47,7 @@ export const TransactionDailyComponent = ({
{transactions.map(({
date, type, address, amount,
}, idx) => (
<div>
<Fragment key={address + type + date}>
<TransactionItemComponent
type={type}
date={date}
@ -58,7 +58,7 @@ export const TransactionDailyComponent = ({
{idx < transactions.length - 1 && (
<Divider color={theme.colors.inactiveItem} />
)}
</div>
</Fragment>
))}
</TransactionsWrapper>
</Wrapper>