aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-03-28 14:51:17 -0300
committerSebastian <sebasjm@gmail.com>2022-03-28 14:51:17 -0300
commite5f21ec5bbcb74028c7e49521b19af9437489190 (patch)
tree15ee900dc79034d3a1725f144ec39c15fc5a8e79
parent1d85662946c393ea6985c178842be40d38fc687d (diff)
fix build, tipAmountEffective = selectedDemons.totalCoinValue
-rw-r--r--packages/taler-wallet-core/src/operations/tip.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/operations/tip.ts b/packages/taler-wallet-core/src/operations/tip.ts
index cd29f8a86..9582f18e8 100644
--- a/packages/taler-wallet-core/src/operations/tip.ts
+++ b/packages/taler-wallet-core/src/operations/tip.ts
@@ -126,11 +126,7 @@ export async function prepareTip(
merchantBaseUrl: res.merchantBaseUrl,
createdTimestamp: TalerProtocolTimestamp.now(),
merchantTipId: res.merchantTipId,
- tipAmountEffective: Amounts.sub(
- amount,
- Amounts.add(withdrawDetails.overhead, withdrawDetails.withdrawFee)
- .amount,
- ).amount,
+ tipAmountEffective: selectedDenoms.totalCoinValue,
retryInfo: initRetryInfo(),
lastError: undefined,
denomsSel: denomSelectionInfoToState(selectedDenoms),