Skip to content

Commit

Permalink
Fix issue with ServerInfo crashing the modal (matrix-org#8364)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored and Johennes committed Apr 19, 2022
1 parent 15111de commit b668dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/views/dialogs/devtools/ServerInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ const ServerInfo = ({ onBack }: IDevtoolsProps) => {
}

<h4>{ _t("Client Versions") }</h4>
{ capabilities !== FAILED_TO_LOAD
{ clientVersions !== FAILED_TO_LOAD
? <SyntaxHighlight language="json" children={JSON.stringify(clientVersions, null, 4)} />
: <div>{ _t("Failed to load.") }</div>
}

<h4>{ _t("Server Versions") }</h4>
{ capabilities !== FAILED_TO_LOAD
{ serverVersions !== FAILED_TO_LOAD
? <SyntaxHighlight language="json" children={JSON.stringify(serverVersions, null, 4)} />
: <div>{ _t("Failed to load.") }</div>
}
Expand Down

0 comments on commit b668dfb

Please sign in to comment.