diff options
Diffstat (limited to 'packages/app/src/context')
| -rw-r--r-- | packages/app/src/context/global-sync.tsx | 5 | ||||
| -rw-r--r-- | packages/app/src/context/notification.tsx | 9 |
2 files changed, 8 insertions, 6 deletions
diff --git a/packages/app/src/context/global-sync.tsx b/packages/app/src/context/global-sync.tsx index 1738cb38b..18eacbd60 100644 --- a/packages/app/src/context/global-sync.tsx +++ b/packages/app/src/context/global-sync.tsx @@ -658,10 +658,7 @@ function createGlobalSync() { .then((x) => x.data) .catch(() => undefined) if (!health?.healthy) { - setGlobalStore( - "error", - new Error(language.t("error.globalSync.connectFailed", { url: globalSDK.url })), - ) + setGlobalStore("error", new Error(language.t("error.globalSync.connectFailed", { url: globalSDK.url }))) return } diff --git a/packages/app/src/context/notification.tsx b/packages/app/src/context/notification.tsx index 579c36999..976f6e5c0 100644 --- a/packages/app/src/context/notification.tsx +++ b/packages/app/src/context/notification.tsx @@ -96,7 +96,11 @@ export const { use: useNotification, provider: NotificationProvider } = createSi const href = `/${base64Encode(directory)}/session/${sessionID}` if (settings.notifications.agent()) { - void platform.notify(language.t("notification.session.responseReady.title"), session?.title ?? sessionID, href) + void platform.notify( + language.t("notification.session.responseReady.title"), + session?.title ?? sessionID, + href, + ) } break } @@ -117,7 +121,8 @@ export const { use: useNotification, provider: NotificationProvider } = createSi error, }) const description = - session?.title ?? (typeof error === "string" ? error : language.t("notification.session.error.fallbackDescription")) + session?.title ?? + (typeof error === "string" ? error : language.t("notification.session.error.fallbackDescription")) const href = sessionID ? `/${base64Encode(directory)}/session/${sessionID}` : `/${base64Encode(directory)}` if (settings.notifications.errors()) { void platform.notify(language.t("notification.session.error.title"), description, href) |
