From 929224a2cb63c545d41cc36272cdec2f3a40c58a Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 29 Nov 2024 17:03:38 +0530 Subject: [PATCH] Reorder --- web/apps/photos/src/pages/shared-albums.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx index 7c3acdb66a..980c62348a 100644 --- a/web/apps/photos/src/pages/shared-albums.tsx +++ b/web/apps/photos/src/pages/shared-albums.tsx @@ -461,8 +461,6 @@ export default function PublicCollectionGallery() { ); - } else if (!publicFiles || !credentials.current) { - return {t("NOT_FOUND")}; } else if (errorMessage) { return {errorMessage}; } else if (isPasswordProtected && !credentials.current.accessTokenJWT) { @@ -482,6 +480,8 @@ export default function PublicCollectionGallery() { ); + } else if (!publicFiles || !credentials.current) { + return {t("NOT_FOUND")}; } // TODO: memo this (after the dependencies are traceable).