Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix web lint

Prateek Sunal1eb8cc9cd818
diff --git a/web/apps/ensu/src/services/chat/chatKey.ts b/web/apps/ensu/src/services/chat/chatKey.ts
index e0c0e56229..e21dd67dd6 100644
--- a/web/apps/ensu/src/services/chat/chatKey.ts
+++ b/web/apps/ensu/src/services/chat/chatKey.ts
@@ -1,5 +1,5 @@
-import { HTTPError } from "ente-base/http";
import { savedLocalUser } from "ente-accounts/services/accounts-db";
+import { HTTPError } from "ente-base/http";
import {
isTauriAppRuntime,
secureStorageDelete,
@@ -43,7 +43,9 @@ const scopedRemoteChatKeyLocalStorageKey = () => {
const scopedRemoteChatKeySecureStorageKey = () => {
const userID = savedLocalUser()?.id;
- return userID ? `${REMOTE_CHAT_KEY_SECURE_STORAGE_KEY}.${userID}` : undefined;
+ return userID
+ ? `${REMOTE_CHAT_KEY_SECURE_STORAGE_KEY}.${userID}`
+ : undefined;
};
const clearLegacyRemoteChatKeyLocalStorage = () =>
diff --git a/web/apps/ensu/src/services/logout.ts b/web/apps/ensu/src/services/logout.ts
index b5c27d12c8..cf5f2fe516 100644
--- a/web/apps/ensu/src/services/logout.ts
+++ b/web/apps/ensu/src/services/logout.ts
@@ -1,4 +1,4 @@
-import { invoke } from "@tauri-apps/api/core";
+import { invoke } from "@tauri-apps/api/tauri";
import { accountLogout } from "ente-accounts/services/logout";
import log from "ente-base/log";