aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts
index ffcc5ade6..936b53954 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -569,7 +569,7 @@ export async function updateWithdrawalDenoms(
);
const now = getTimestampNow();
for (const denom of nextDenominations) {
- const started = timestampCmp(now, denom.stampStart) >= 0;
+ const startDelay = getDurationRemaining(denom.stampStart, now);
const lastPossibleWithdraw = timestampSubtractDuraction(
denom.stampExpireWithdraw,
{ d_ms: 50 * 1000 },
@@ -580,7 +580,7 @@ export async function updateWithdrawalDenoms(
denom.isRevoked
} offered ${denom.isOffered} remaining ${
(remaining.d_ms as number) / 1000
- }sec started ${started}`,
+ }sec withdrawDelay ${(startDelay.d_ms as number) / 1000}sec`,
);
}
}