i18n and add space null guard for home space

This commit is contained in:
Michael Telatynski 2021-08-06 12:50:32 +01:00
parent 1a1b1738c1
commit facc882a11
2 changed files with 3 additions and 3 deletions

View file

@ -78,7 +78,7 @@ export const SpaceButton: React.FC<IButtonProps> = ({
let notifBadge;
if (notificationState) {
let ariaLabel = _t("Jump to first unread room.");
if (space.getMyMembership() === "invite") {
if (space?.getMyMembership() === "invite") {
ariaLabel = _t("Jump to first invite.");
}