From b4d7f6b592b25929fda680834e93472b0c777098 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 13 Apr 2023 08:25:51 +0100 Subject: [PATCH] Fix no identity server in help & about settings (#10563) --- .../tabs/user/HelpUserSettingsTab.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx b/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx index 7ad495e2aa..cb15fdfe1a 100644 --- a/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx @@ -338,15 +338,16 @@ export default class HelpUserSettingsTab extends React.Component )}
- {_t( - "Identity server is %(identityServerUrl)s", - { - identityServerUrl: MatrixClientPeg.get().getIdentityServerUrl(), - }, - { - code: (sub) => {sub}, - }, - )} + {MatrixClientPeg.get().getIdentityServerUrl() && + _t( + "Identity server is %(identityServerUrl)s", + { + identityServerUrl: MatrixClientPeg.get().getIdentityServerUrl(), + }, + { + code: (sub) => {sub}, + }, + )}
{_t("Access Token")}