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

Commit

Permalink
Fix issue with ServerInfo crashing the modal
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Apr 19, 2022
1 parent bca9caa commit 5c85637
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 5c85637

Please sign in to comment.