aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-01-18 12:36:49 -0300
committerSebastian <sebasjm@gmail.com>2023-01-18 12:36:49 -0300
commitb0258d1909c193af4bce99fd15e0c617a63fe8d0 (patch)
tree6623605d5194e5312353067b8f05c3bd21e78062
parent44570081f1861681c3f9799c79c6d1c57673195e (diff)
fix tx pending state
-rw-r--r--packages/taler-wallet-core/src/operations/transactions.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts
index 0e86c77ed..3db548fa3 100644
--- a/packages/taler-wallet-core/src/operations/transactions.ts
+++ b/packages/taler-wallet-core/src/operations/transactions.ts
@@ -409,7 +409,9 @@ function buildTransactionForPullPaymentCredit(
amountEffective: Amounts.stringify(wsr.denomsSel.totalCoinValue),
amountRaw: Amounts.stringify(wsr.instructedAmount),
exchangeBaseUrl: wsr.exchangeBaseUrl,
- extendedStatus: ExtendedStatus.Done,
+ extendedStatus: wsr.timestampFinish
+ ? ExtendedStatus.Done
+ : ExtendedStatus.Pending,
pending: !wsr.timestampFinish,
timestamp: wsr.timestampStart,
info: {