aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/pending.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-06-11 11:15:08 +0200
committerFlorian Dold <florian@dold.me>2021-06-11 11:15:08 +0200
commite77510106fdcb0448af809fd6c928f1ff80b6d15 (patch)
tree7aeb34586b4ae86d578090da296de0050e723328 /packages/taler-wallet-core/src/operations/pending.ts
parent8ad36d89f55783c34043ee9ef37759cd94bcec7c (diff)
downloadwallet-core-e77510106fdcb0448af809fd6c928f1ff80b6d15.tar.xz
simplify retry timeout handling
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pending.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/pending.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/pending.ts b/packages/taler-wallet-core/src/operations/pending.ts
index b40c33c5c..f0c9c9d8c 100644
--- a/packages/taler-wallet-core/src/operations/pending.ts
+++ b/packages/taler-wallet-core/src/operations/pending.ts
@@ -155,10 +155,11 @@ async function gatherProposalPending(
if (proposal.proposalStatus == ProposalStatus.PROPOSED) {
// Nothing to do, user needs to choose.
} else if (proposal.proposalStatus == ProposalStatus.DOWNLOADING) {
+ const timestampDue = proposal.retryInfo?.nextRetry ?? getTimestampNow();
resp.pendingOperations.push({
type: PendingOperationType.ProposalDownload,
givesLifeness: true,
- timestampDue: proposal.retryInfo.nextRetry,
+ timestampDue,
merchantBaseUrl: proposal.merchantBaseUrl,
orderId: proposal.orderId,
proposalId: proposal.proposalId,