aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/common.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/operations/common.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/common.ts6
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);