Skip to content

armgit / ente

Public Imported from GitHub
0

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

Patch

Manav Rathi61d89e01b847
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index fb08969cc0..8815e43514 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -262,7 +262,7 @@ export default function Gallery() {
const [authenticateUserModalView, setAuthenticateUserModalView] =
useState(false);
- const onAuthenticateCallback = useRef<() => void>();
+ const onAuthenticateCallback = useRef<(() => void) | undefined>(undefined);
const authenticateUser = (callback: () => void) => {
onAuthenticateCallback.current = callback;