added key

This commit is contained in:
Cássio Zen 2016-07-13 17:19:59 -03:00
parent 350f9a12b7
commit 9e213c3b9f

View File

@ -55,7 +55,7 @@ export default class AlltypeCard extends React.Component {
lineText.push(finalText.substr(0, finalText.length - 1)); lineText.push(finalText.substr(0, finalText.length - 1));
} }
return lineText.map(text => ( return lineText.map(text => (
<ScaledLine toWidth={216}> <ScaledLine key={text.trim().replace(/[^a-z0-9]+/gi, '-')} toWidth={216}>
{text} {text}
</ScaledLine> </ScaledLine>
)); ));