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