aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/transactions.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-01-18 17:32:34 -0300
committerSebastian <sebasjm@gmail.com>2023-01-18 17:32:34 -0300
commitfdc7b5827742f6c692d4c8c1431b9042e67b748c (patch)
tree6a687f0aa55cce257e587f26f167239d46ca5df4 /packages/taler-wallet-core/src/operations/transactions.ts
parent4bd9b1ba79af12d5916e0ab308acd40935a813ec (diff)
parentd7fe5b0cb5472becfafa7123f880d26d8efd2f8f (diff)
downloadwallet-core-fdc7b5827742f6c692d4c8c1431b9042e67b748c.tar.xz
Merge branch 'master' of git.taler.net:wallet-core
Diffstat (limited to 'packages/taler-wallet-core/src/operations/transactions.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/transactions.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts
index b94617851..083b6618a 100644
--- a/packages/taler-wallet-core/src/operations/transactions.ts
+++ b/packages/taler-wallet-core/src/operations/transactions.ts
@@ -559,6 +559,12 @@ function buildTransactionForDeposit(
dg: DepositGroupRecord,
ort?: OperationRetryRecord,
): Transaction {
+ let deposited = true;
+ for (const d of dg.depositedPerCoin) {
+ if (!d) {
+ deposited = false;
+ }
+ }
return {
type: TransactionType.Deposit,
amountRaw: Amounts.stringify(dg.effectiveDepositAmount),
@@ -583,6 +589,7 @@ function buildTransactionForDeposit(
)) /
dg.transactionPerCoin.length,
depositGroupId: dg.depositGroupId,
+ deposited,
...(ort?.lastError ? { error: ort.lastError } : {}),
};
}