From 30d8ebd9462df9d5c5ff5ddc5302f2218c22997b Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 29 Nov 2024 15:03:39 +0530 Subject: [PATCH] Reorder --- web/apps/photos/src/pages/shared-albums.tsx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx index 2643cdc8c4..3c6e7cb1d8 100644 --- a/web/apps/photos/src/pages/shared-albums.tsx +++ b/web/apps/photos/src/pages/shared-albums.tsx @@ -452,14 +452,14 @@ export default function PublicCollectionGallery() { } }; - if (loading) { - if (!publicFiles) { - return ( - - - - ); - } + if (loading && !publicFiles) { + return ( + + + + ); + } else if (!publicFiles) { + return {t("NOT_FOUND")}; } else if (errorMessage) { return {errorMessage}; } else if (isPasswordProtected && !passwordJWTToken.current) { @@ -479,8 +479,6 @@ export default function PublicCollectionGallery() { ); - } else if (!publicFiles) { - return {t("NOT_FOUND")}; } return (