Skip to content

armgit / ente

Public Imported from GitHub
0

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

Dep

Manav Rathief7ff0b18658
diff --git a/web/apps/photos/src/components/AuthenticateUser.tsx b/web/apps/photos/src/components/AuthenticateUser.tsx
index 7962c7d966..0b7e5ce1e2 100644
--- a/web/apps/photos/src/components/AuthenticateUser.tsx
+++ b/web/apps/photos/src/components/AuthenticateUser.tsx
@@ -83,10 +83,10 @@ export const AuthenticateUser: React.FC<AuthenticateUserProps> = ({
}, []);
useEffect(() => {
- // Do a non-blocking validation of the session, but show the dialog to
- // the user.
+ // Do a non-blocking validation of the session whenever we show the
+ // dialog to the user.
if (open) void validateSession();
- }, [open]);
+ }, [open, validateSession]);
return (
<TitledMiniDialog