diff --git a/src/shared/components/remote-fetch.tsx b/src/shared/components/remote-fetch.tsx index 3ff219cd..da3b0c56 100644 --- a/src/shared/components/remote-fetch.tsx +++ b/src/shared/components/remote-fetch.tsx @@ -95,6 +95,7 @@ export class RemoteFetch extends Component { const status = "loading" as "success" | "loading" | "empty"; const { uri } = getRemoteFetchQueryParams(); + const remoteCommunityName = uri ? uriToQuery(uri) : "remote community"; switch (status) { case "success": { @@ -112,7 +113,7 @@ export class RemoteFetch extends Component { return ( <>

- Fetching {uri ? uriToQuery(uri) : "remote community"} + Fetching {remoteCommunityName}

@@ -121,6 +122,14 @@ export class RemoteFetch extends Component { ); } + + default: { + return ( + <> +

Could not fetch {remoteCommunityName}

+ + ); + } } }