diff --git a/src/pages/gallery/index.tsx b/src/pages/gallery/index.tsx index 79b68a949..f035c322a 100644 --- a/src/pages/gallery/index.tsx +++ b/src/pages/gallery/index.tsx @@ -121,6 +121,7 @@ export default function Gallery(props) { const key = getKey(SESSION_KEYS.ENCRYPTION_KEY); if (!key) { router.push('/'); + return; } const main = async () => { const data = await localFiles();