diff --git a/lisk-dex-electron/src/PlaceOrder.jsx b/lisk-dex-electron/src/PlaceOrder.jsx index 454c04e..6da49f4 100644 --- a/lisk-dex-electron/src/PlaceOrder.jsx +++ b/lisk-dex-electron/src/PlaceOrder.jsx @@ -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 = { };