Skip to content

Commit

Permalink
Round up for_sale and down to_receive, #562
Browse files Browse the repository at this point in the history
  • Loading branch information
abitmore authored Oct 12, 2017
1 parent c956334 commit 3d88bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/Exchange/Exchange.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ class Exchange extends React.Component {

_setReceive(state, isBid) {
if (state.price.isValid() && state.for_sale.hasAmount()) {
state.to_receive = state.for_sale.times(state.price, isBid);
state.to_receive = state.for_sale.times(state.price);
state.toReceiveText = state.to_receive.getAmount({real: true}).toString();
return true;
}
Expand All @@ -746,7 +746,7 @@ class Exchange extends React.Component {

_setForSale(state, isBid) {
if (state.price.isValid() && state.to_receive.hasAmount()) {
state.for_sale = state.to_receive.times(state.price, isBid);
state.for_sale = state.to_receive.times(state.price, true);
state.forSaleText = state.for_sale.getAmount({real: true}).toString();
return true;
}
Expand Down

0 comments on commit 3d88bfc

Please sign in to comment.