We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87db4e9 commit 703bbfcCopy full SHA for 703bbfc
libs/coin-modules/coin-polkadot/src/bridge/getTransactionStatus.ts
@@ -74,9 +74,10 @@ const getSendTransactionStatus: AccountBridge<
74
}
75
76
if (!(errors.amount instanceof AmountRequired)) {
77
- if (!transaction.useAllAmount && account.spendableBalance.isZero()) {
78
- errors.amount = new NotEnoughBalance();
79
- } else if (totalSpent.gt(account.spendableBalance)) {
+ if (
+ (!transaction.useAllAmount && account.spendableBalance.isZero()) ||
+ totalSpent.gt(account.spendableBalance)
80
+ ) {
81
errors.amount = new NotEnoughBalance();
82
83
0 commit comments