Fix wrong token handling (#4254)

* Fixing wrong token displayed

* Linting

* Revert filtering out

* Revert the revert
This commit is contained in:
Nicolas Gotchac
2017-01-20 19:49:09 +01:00
committed by Jaco Greeff
parent 6c5167ebb3
commit 8edaab806e
3 changed files with 58 additions and 50 deletions

View File

@@ -41,7 +41,7 @@ class Balance extends Component {
let body = (balance.tokens || [])
.filter((balance) => new BigNumber(balance.value).gt(0))
.map((balance) => {
.map((balance, index) => {
const token = balance.token;
let value;
@@ -76,7 +76,7 @@ class Balance extends Component {
return (
<div
className={ styles.balance }
key={ token.tag }
key={ `${index}_${token.tag}` }
>
<img
src={ imagesrc }