Skip to content

Commit

Permalink
little fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nutelabezgmo222 committed Apr 26, 2021
1 parent 34b17d2 commit 86993d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Result.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ function Result({ resultSet = {}, values = [] }) {
<ul className="result__list">
{
resultSet.variables &&
resultSet.variables.map((variable) => {
resultSet.variables.map((variable, i) => {
if (typeof variable.name === 'number') {
return <li>{values[variable.name].title} : {Math.floor(variable.value)}</li>
return <li key={i}>{values[variable.name].title} : {Math.floor(variable.value)}</li>
}
return '';
})
}
</ul>
Expand Down

0 comments on commit 86993d4

Please sign in to comment.