diff --git a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx index 88288665e7..3051a92b21 100644 --- a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx @@ -28,14 +28,41 @@ export function UniversalDappUI(props: UdappProps) { const [evmBC, setEvmBC] = useState(null) const [instanceBalance, setInstanceBalance] = useState(0) - const getVersion = () => { - let version = '' - try { - version = window.location.href.split('=')[5].split('+')[0].split('-')[1] - } catch { - version = window.location.href.split('=')[5].split('+')[0].split('-')[1] + const UrlLink = () => { + + const getVersion = () => { + let version = '' + try { + version = window.location.href.split('=')[5].split('+')[0].split('-')[1] + } catch { + version = window.location.href.split('=')[5].split('+')[0].split('-')[1] + } + return version } - return version + + return ( +
+ ) } useEffect(() => { if (!props.instance.abi) { @@ -472,16 +499,7 @@ export function UniversalDappUI(props: UdappProps) { })}