diff options
author | Florian Dold <florian@dold.me> | 2023-06-20 15:10:51 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-06-20 15:10:51 +0200 |
commit | 26b30a462ad373d4b5188362ba2e4f6adad0674d (patch) | |
tree | d3a0448badd16ef6f8921c9d16ee63dd0ab6f255 /packages/taler-wallet-core/src/operations/common.ts | |
parent | 9c708251f92e6691ebba80fa8d129c6c04cec618 (diff) | |
download | wallet-core-26b30a462ad373d4b5188362ba2e4f6adad0674d.tar.xz |
wallet-core: be less spammy with self-transitions and logging
Diffstat (limited to 'packages/taler-wallet-core/src/operations/common.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/common.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/common.ts b/packages/taler-wallet-core/src/operations/common.ts index 293870a18..37f1a2f22 100644 --- a/packages/taler-wallet-core/src/operations/common.ts +++ b/packages/taler-wallet-core/src/operations/common.ts @@ -371,7 +371,11 @@ async function storePendingTaskPending( retryRecord.retryInfo = RetryInfo.increment(retryRecord.retryInfo); } await tx.operationRetries.put(retryRecord); - return taskToTransactionNotification(ws, tx, pendingTaskId, undefined); + if (hadError) { + return taskToTransactionNotification(ws, tx, pendingTaskId, undefined); + } else { + return undefined; + } }); if (maybeNotification) { ws.notify(maybeNotification); |