aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/components
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-03-07 11:10:52 +0100
committerFlorian Dold <florian@dold.me>2024-03-07 11:10:52 +0100
commit466e2b7643692aa6b7f76a193b84775008e17350 (patch)
treedd3f9a0b67765e2c7ea6b97c2a7acbbcac71d4b7 /packages/taler-wallet-webextension/src/components
parent8eb3e505be967afde0053d5a392e8c6877d8f1dd (diff)
downloadwallet-core-466e2b7643692aa6b7f76a193b84775008e17350.tar.xz
wallet-core: improve insufficient balance reporting
Diffstat (limited to 'packages/taler-wallet-webextension/src/components')
-rw-r--r--packages/taler-wallet-webextension/src/components/PaymentButtons.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx b/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx
index 731bcfed9..e7c4fbba4 100644
--- a/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx
+++ b/packages/taler-wallet-webextension/src/components/PaymentButtons.tsx
@@ -17,7 +17,7 @@
import {
AmountJson,
Amounts,
- PayMerchantInsufficientBalanceDetails,
+ PaymentInsufficientBalanceDetails,
PreparePayResult,
PreparePayResultType,
TranslatedString,
@@ -221,7 +221,7 @@ type NoEnoughBalanceReason =
| "fee-gap";
function getReason(
- info: PayMerchantInsufficientBalanceDetails,
+ info: PaymentInsufficientBalanceDetails,
): NoEnoughBalanceReason {
if (Amounts.cmp(info.amountRequested, info.balanceAvailable) > 0) {
return "available";