diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-webextension/src/components/PaymentButtons.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx b/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx index f8983b995..67aaccf53 100644 --- a/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx +++ b/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx @@ -203,19 +203,19 @@ type NoEnoughBalanceReason = function getReason( info: PayMerchantInsufficientBalanceDetails, ): NoEnoughBalanceReason { - if (Amounts.cmp(info.amountRequested, info.balanceAvailable)) { + if (Amounts.cmp(info.amountRequested, info.balanceAvailable) > 0) { return "available"; } - if (Amounts.cmp(info.amountRequested, info.balanceMaterial)) { + if (Amounts.cmp(info.amountRequested, info.balanceMaterial) > 0) { return "material"; } - if (Amounts.cmp(info.amountRequested, info.balanceAgeAcceptable)) { + if (Amounts.cmp(info.amountRequested, info.balanceAgeAcceptable) > 0) { return "age-acceptable"; } - if (Amounts.cmp(info.amountRequested, info.balanceMerchantAcceptable)) { + if (Amounts.cmp(info.amountRequested, info.balanceMerchantAcceptable) > 0) { return "merchant-acceptable"; } - if (Amounts.cmp(info.amountRequested, info.balanceMerchantDepositable)) { + if (Amounts.cmp(info.amountRequested, info.balanceMerchantDepositable) > 0) { return "merchant-depositable"; } return "fee-gap"; |