This commit is contained in:
Manav Rathi
2024-11-29 15:03:39 +05:30
parent 85673177f5
commit 30d8ebd946

View File

@@ -452,14 +452,14 @@ export default function PublicCollectionGallery() {
}
};
if (loading) {
if (!publicFiles) {
return (
<VerticallyCentered>
<ActivityIndicator />
</VerticallyCentered>
);
}
if (loading && !publicFiles) {
return (
<VerticallyCentered>
<ActivityIndicator />
</VerticallyCentered>
);
} else if (!publicFiles) {
return <VerticallyCentered>{t("NOT_FOUND")}</VerticallyCentered>;
} else if (errorMessage) {
return <VerticallyCentered>{errorMessage}</VerticallyCentered>;
} else if (isPasswordProtected && !passwordJWTToken.current) {
@@ -479,8 +479,6 @@ export default function PublicCollectionGallery() {
</FormPaper>
</VerticallyCentered>
);
} else if (!publicFiles) {
return <VerticallyCentered>{t("NOT_FOUND")}</VerticallyCentered>;
}
return (