From 1a8cef49f9edd28ac21ab6abf8c1caa13c7ff69a Mon Sep 17 00:00:00 2001 From: Kristof Csillag Date: Thu, 15 Feb 2024 18:33:52 +0100 Subject: [PATCH] Make paratime WSS address optional --- src/app/components/LayerPicker/LayerDetails.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/app/components/LayerPicker/LayerDetails.tsx b/src/app/components/LayerPicker/LayerDetails.tsx index 3ad5bd42a0..aa32f6e7fa 100644 --- a/src/app/components/LayerPicker/LayerDetails.tsx +++ b/src/app/components/LayerPicker/LayerDetails.tsx @@ -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 @@ -143,11 +143,13 @@ const RuntimeDetails: FC = props => { endpoint: details.rpcHttp, })} - - {t('layerPicker.rpcWebSockets', { - endpoint: details.rpcWebSockets, - })} - + {details.rpcWebSockets && ( + + {t('layerPicker.rpcWebSockets', { + endpoint: details.rpcWebSockets, + })} + + )} {t('layerPicker.chainId')}