Skip to content

Commit

Permalink
Make paratime WSS address optional
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Feb 16, 2024
1 parent e1d3ffd commit 1a8cef4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/app/components/LayerPicker/LayerDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { useScreenSize } from '../../hooks/useScreensize'
type LayerDetailsContent = {
description: string
rpcHttp: string
rpcWebSockets: string
rpcWebSockets?: string
chainHexId: string
chainDecimalId: string
docs: string
Expand Down Expand Up @@ -143,11 +143,13 @@ const RuntimeDetails: FC<LayerDetailsProps> = props => {
endpoint: details.rpcHttp,
})}
</TextListItem>
<TextListItem>
{t('layerPicker.rpcWebSockets', {
endpoint: details.rpcWebSockets,
})}
</TextListItem>
{details.rpcWebSockets && (
<TextListItem>
{t('layerPicker.rpcWebSockets', {
endpoint: details.rpcWebSockets,
})}
</TextListItem>
)}
<TextListItem>
{t('layerPicker.chainId')}
<TextList>
Expand Down

0 comments on commit 1a8cef4

Please sign in to comment.