diff --git a/src/families/celo/js-getTransactionStatus.ts b/src/families/celo/js-getTransactionStatus.ts index 5358f36d4c..41133e8601 100644 --- a/src/families/celo/js-getTransactionStatus.ts +++ b/src/families/celo/js-getTransactionStatus.ts @@ -29,10 +29,12 @@ const getTransactionStatus = async ( const estimatedFees = transaction.fees || new BigNumber(0); - const amount = useAllAmount + let amount = useAllAmount ? account.spendableBalance.minus(estimatedFees) : new BigNumber(transaction.amount); + if (amount.lt(0)) amount = new BigNumber(0); + if (amount.lte(0) && !transaction.useAllAmount) { errors.amount = new AmountRequired(); }