Skip to content

Commit

Permalink
Fix for margin positions modal not showing existing positions
Browse files Browse the repository at this point in the history
  • Loading branch information
svk31 committed Mar 2, 2018
1 parent 4c9ddbe commit f96b124
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/components/Modal/BorrowModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,14 @@ class BorrowModalContent extends React.Component {
a.getIn(["call_price", "quote", "asset_id"]) ===
props.quote_asset.get("id")
);
}) || {
collateral: null,
debt: null
};
});

currentPosition = !!currentPosition
? currentPosition.toJS()
: {
collateral: null,
debt: null
};
}
return currentPosition;
}
Expand Down

0 comments on commit f96b124

Please sign in to comment.