Skip to content

Commit

Permalink
CDP-441 Fix strange values in collateral list
Browse files Browse the repository at this point in the history
  • Loading branch information
Padraic-O-Mhuiris committed Oct 25, 2019
1 parent a8e66ce commit 227660b
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/components/CDPCreateScreens/CDPCreateSelectCollateral.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,18 @@ const CDPCreateSelectCollateral = ({ selectedIlk, proxyAddress, dispatch }) => {
</tr>
</thead>
<tbody>
{ilkList.map(ilk => (
<IlkTableRow
key={ilk.key}
checked={ilk.key === selectedIlk.key}
dispatch={dispatch}
ilk={ilk}
gemBalance={balances[ilk.gem]}
/>
))}
{ilkList.map(
ilk =>
balances[ilk.gem] && (
<IlkTableRow
key={ilk.key}
checked={ilk.key === selectedIlk.key}
dispatch={dispatch}
ilk={ilk}
gemBalance={balances[ilk.gem]}
/>
)
)}
</tbody>
</Table>
</Overflow>
Expand Down

0 comments on commit 227660b

Please sign in to comment.