aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-webextension/src')
-rw-r--r--packages/taler-wallet-webextension/src/wxBackend.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/packages/taler-wallet-webextension/src/wxBackend.ts b/packages/taler-wallet-webextension/src/wxBackend.ts
index a0b9f2908..1601f7703 100644
--- a/packages/taler-wallet-webextension/src/wxBackend.ts
+++ b/packages/taler-wallet-webextension/src/wxBackend.ts
@@ -120,7 +120,7 @@ function convertWalletActivityNotification(
if (found) {
found.end = event.when;
found.events.unshift(event);
- return found;
+ return undefined;
}
return {
id: getUniqueId(),
@@ -148,7 +148,7 @@ function convertWalletActivityNotification(
if (found) {
found.end = event.when;
found.events.unshift(event);
- return found;
+ return undefined;
}
return {
id: getUniqueId(),
@@ -168,7 +168,7 @@ function convertWalletActivityNotification(
if (found) {
found.end = event.when;
found.events.unshift(event);
- return found;
+ return undefined;
}
return {
id: getUniqueId(),
@@ -181,14 +181,14 @@ function convertWalletActivityNotification(
}
case NotificationType.Idle: {
const groupId = "";
- return({
+ return {
id: getUniqueId(),
type: event.type,
start: event.when,
end: AbsoluteTime.never(),
events: [event],
groupId,
- });
+ };
}
case NotificationType.TaskObservabilityEvent: {
const groupId = `${event.type}:${event.taskId}`;
@@ -196,16 +196,16 @@ function convertWalletActivityNotification(
if (found) {
found.end = event.when;
found.events.unshift(event);
- return found;
+ return undefined;
}
- return({
+ return {
id: getUniqueId(),
type: event.type,
start: event.when,
end: AbsoluteTime.never(),
events: [event],
groupId,
- });
+ };
}
case NotificationType.RequestObservabilityEvent: {
const groupId = `${event.type}:${event.operation}:${event.requestId}`;
@@ -213,16 +213,16 @@ function convertWalletActivityNotification(
if (found) {
found.end = event.when;
found.events.unshift(event);
- return found;
+ return undefined;
}
- return({
+ return {
id: getUniqueId(),
type: event.type,
start: event.when,
end: AbsoluteTime.never(),
events: [event],
groupId,
- });
+ };
}
}
}