diff --git a/src/components/structures/SpaceRoomView.tsx b/src/components/structures/SpaceRoomView.tsx
index becd05b9c9..da9834d2ad 100644
--- a/src/components/structures/SpaceRoomView.tsx
+++ b/src/components/structures/SpaceRoomView.tsx
@@ -128,6 +128,7 @@ const useMyRoomMembership = (room: Room) => {
};
const SpaceInfo = ({ space }: { space: Room }) => {
+ // summary will begin as undefined whilst loading and go null if it fails to load.
const summary = useAsyncMemo(async () => {
if (space.getMyMembership() !== "invite") return;
try {
@@ -156,7 +157,7 @@ const SpaceInfo = ({ space }: { space: Room }) => {
memberSection =
{ _t("%(count)s members", { count: summary.num_joined_members }) }
;
- } else if (summary === null) {
+ } else if (summary !== undefined) { // summary is not still loading
memberSection =
{ (count) => count > 0 ? (