Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(lint)

Aswin Asok5cf6c0482536
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index cd889c0feb..fdaac7c035 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -418,7 +418,7 @@ const Page: React.FC = () => {
useEffect(() => {
const electron = globalThis.electron;
let syncIntervalID: ReturnType<typeof setInterval> | undefined;
- let unsubscribeMainWindowFocus = () => undefined;
+ let unsubscribeMainWindowFocus: (() => void) | undefined;
void (async () => {
if (!haveMasterKeyInSession() || !(await savedAuthToken())) {
@@ -522,7 +522,7 @@ const Page: React.FC = () => {
return () => {
clearInterval(syncIntervalID);
- unsubscribeMainWindowFocus();
+ unsubscribeMainWindowFocus?.();
};
}, []);