aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r--packages/taler-wallet-core/src/withdraw.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts
index 083fa2a2d..3e2f4411f 100644
--- a/packages/taler-wallet-core/src/withdraw.ts
+++ b/packages/taler-wallet-core/src/withdraw.ts
@@ -3323,7 +3323,10 @@ export async function acceptWithdrawalFromUri(
if (req.amount == null) {
amount = p.info.amount;
} else {
- if (!p.info.editableAmount) {
+ if (
+ Amounts.cmp(p.info.amount, req.amount) != 0 &&
+ !p.info.editableAmount
+ ) {
throw Error(
`mismatched amount, amount is fixed by bank (${p.info.amount}) but client provided different amount (${req.amount})`,
);