Skip to content

armgit / ente

Public Imported from GitHub
0

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

Reorder

Manav Rathi929224a2cb63
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() {
<ActivityIndicator />
</VerticallyCentered>
);
- } else if (!publicFiles || !credentials.current) {
- return <VerticallyCentered>{t("NOT_FOUND")}</VerticallyCentered>;
} else if (errorMessage) {
return <VerticallyCentered>{errorMessage}</VerticallyCentered>;
} else if (isPasswordProtected && !credentials.current.accessTokenJWT) {
@@ -482,6 +480,8 @@ export default function PublicCollectionGallery() {
</FormPaper>
</VerticallyCentered>
);
+ } else if (!publicFiles || !credentials.current) {
+ return <VerticallyCentered>{t("NOT_FOUND")}</VerticallyCentered>;
}
// TODO: memo this (after the dependencies are traceable).