diff options
author | Sebastian <sebasjm@gmail.com> | 2022-03-28 14:51:17 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-03-28 14:51:17 -0300 |
commit | e5f21ec5bbcb74028c7e49521b19af9437489190 (patch) | |
tree | 15ee900dc79034d3a1725f144ec39c15fc5a8e79 /packages/taler-wallet-core/src | |
parent | 1d85662946c393ea6985c178842be40d38fc687d (diff) | |
download | wallet-core-e5f21ec5bbcb74028c7e49521b19af9437489190.tar.xz |
fix build, tipAmountEffective = selectedDemons.totalCoinValue
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/operations/tip.ts | 6 |
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), |