Skip to content

Commit

Permalink
[Fixed bug, where estimation returns all available orders for NaN value]
Browse files Browse the repository at this point in the history
[#3]
  • Loading branch information
sacOO7 committed May 9, 2020
1 parent 0d60781 commit 56b02c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisk-dex-electron/src/PlaceOrder.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class PlaceOrder extends React.Component {

getEstimatedReturns = () => {
const orderBook = getCleanOrderBook(this.context.orderBookData);
const amount = parseFloat(this.state.amount);
const amount = parseFloat(this.state.amount) || 0;
const { asks } = orderBook;
const { bids } = orderBook;
let estimatedReturns = { };
Expand Down

0 comments on commit 56b02c4

Please sign in to comment.