1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

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.");
}