Fix no identity server in help & about settings (#10563)

This commit is contained in:
Michael Telatynski 2023-04-13 08:25:51 +01:00 committed by GitHub
parent a2c2c01edc
commit b4d7f6b592
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,15 +338,16 @@ export default class HelpUserSettingsTab extends React.Component<IProps, IState>
)}
</div>
<div>
{_t(
"Identity server is <code>%(identityServerUrl)s</code>",
{
identityServerUrl: MatrixClientPeg.get().getIdentityServerUrl(),
},
{
code: (sub) => <code>{sub}</code>,
},
)}
{MatrixClientPeg.get().getIdentityServerUrl() &&
_t(
"Identity server is <code>%(identityServerUrl)s</code>",
{
identityServerUrl: MatrixClientPeg.get().getIdentityServerUrl(),
},
{
code: (sub) => <code>{sub}</code>,
},
)}
</div>
<details>
<summary>{_t("Access Token")}</summary>