Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix unavailable Space profile route

Anand Baburajan409f9557c91c
diff --git a/web/apps/space/src/pages/index.tsx b/web/apps/space/src/pages/index.tsx
index 8a8bd7c461..d3f6d1d8fd 100644
--- a/web/apps/space/src/pages/index.tsx
+++ b/web/apps/space/src/pages/index.tsx
@@ -541,6 +541,18 @@ export const Page: React.FC<PageProps> = ({ invitePreview }) => {
}
if (routeMode.kind == "public-profile") {
+ if (!publicIdentity && publicError) {
+ return (
+ <>
+ <SpacePageMeta
+ themeColor={profileBackground}
+ preview="invite"
+ />
+ <PublicProfileUnavailable />
+ </>
+ );
+ }
+
if (
profileLoadStatus == "loading" ||
(profile && authenticatedProfileRouteStatus != "complete")
@@ -561,20 +573,8 @@ export const Page: React.FC<PageProps> = ({ invitePreview }) => {
return <SpaceRouteFallback background={profileBackground} />;
}
- if (!publicIdentity && !publicError) {
- return <SpaceRouteFallback background={profileBackground} />;
- }
-
if (!publicIdentity) {
- return (
- <>
- <SpacePageMeta
- themeColor={profileBackground}
- preview="invite"
- />
- <PublicProfileUnavailable />
- </>
- );
+ return <SpaceRouteFallback background={profileBackground} />;
}
const inviteFriend = {