Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b4d7f6b

Browse files
authored
Fix no identity server in help & about settings (#10563)
1 parent a2c2c01 commit b4d7f6b

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -338,15 +338,16 @@ export default class HelpUserSettingsTab extends React.Component<IProps, IState>
338338
)}
339339
</div>
340340
<div>
341-
{_t(
342-
"Identity server is <code>%(identityServerUrl)s</code>",
343-
{
344-
identityServerUrl: MatrixClientPeg.get().getIdentityServerUrl(),
345-
},
346-
{
347-
code: (sub) => <code>{sub}</code>,
348-
},
349-
)}
341+
{MatrixClientPeg.get().getIdentityServerUrl() &&
342+
_t(
343+
"Identity server is <code>%(identityServerUrl)s</code>",
344+
{
345+
identityServerUrl: MatrixClientPeg.get().getIdentityServerUrl(),
346+
},
347+
{
348+
code: (sub) => <code>{sub}</code>,
349+
},
350+
)}
350351
</div>
351352
<details>
352353
<summary>{_t("Access Token")}</summary>

0 commit comments

Comments
 (0)