diff --git a/src/components/views/rooms/RoomPreviewBar.tsx b/src/components/views/rooms/RoomPreviewBar.tsx index 30d634e428..2acefc93d6 100644 --- a/src/components/views/rooms/RoomPreviewBar.tsx +++ b/src/components/views/rooms/RoomPreviewBar.tsx @@ -323,7 +323,7 @@ export default class RoomPreviewBar extends React.Component { const messageCase = this.getMessageCase(); switch (messageCase) { case MessageCase.Joining: { - title = this.props.oobData.roomType === RoomType.Space ? _t("Joining space …") : _t("Joining room …"); + title = this.props.oobData?.roomType === RoomType.Space ? _t("Joining space …") : _t("Joining room …"); showSpinner = true; break; }