i18n and add space null guard for home space
This commit is contained in:
parent
1a1b1738c1
commit
facc882a11
2 changed files with 3 additions and 3 deletions
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue