diff options
author | Florian Dold <florian@dold.me> | 2023-02-19 23:13:44 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-19 23:13:44 +0100 |
commit | e6ed901626a5219a1d091f4f41654365d2c29531 (patch) | |
tree | 1dfb2fbc7615ebe6e91621b901bf90968bd98edf /packages/taler-wallet-core/src/operations/transactions.ts | |
parent | 925ef1f410e01323ee24ab9019afcc1713bf07c2 (diff) | |
download | wallet-core-e6ed901626a5219a1d091f4f41654365d2c29531.tar.xz |
wallet-core: various p2p payment fixes
Diffstat (limited to 'packages/taler-wallet-core/src/operations/transactions.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/transactions.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts index d2a7e9d41..1864a0b50 100644 --- a/packages/taler-wallet-core/src/operations/transactions.ts +++ b/packages/taler-wallet-core/src/operations/transactions.ts @@ -24,7 +24,6 @@ import { constructPayPullUri, constructPayPushUri, ExtendedStatus, - j2s, Logger, OrderShortInfo, PaymentStatus, @@ -402,8 +401,8 @@ function buildTransactionForPullPaymentDebit( ): Transaction { return { type: TransactionType.PeerPullDebit, - amountEffective: pi.totalCost - ? pi.totalCost + amountEffective: pi.coinSel?.totalCost + ? pi.coinSel?.totalCost : Amounts.stringify(pi.contractTerms.amount), amountRaw: Amounts.stringify(pi.contractTerms.amount), exchangeBaseUrl: pi.exchangeBaseUrl, |