diff --git a/src/use-cases/order.js b/src/use-cases/order.js index 70a2c90..8113e53 100644 --- a/src/use-cases/order.js +++ b/src/use-cases/order.js @@ -130,7 +130,7 @@ class OrderLib { // If there are fewer tokens in the wallet than what's in the order, // throw an error. - if (totalTokenBalance <= orderEntity.numTokens || isNaN(totalTokenBalance)) { + if (totalTokenBalance < orderEntity.numTokens || isNaN(totalTokenBalance)) { throw new Error( 'App wallet does not have enough tokens to satisfy the SELL order.' )