From c009ca7085035176b9e8218939d160c8468511f6 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Sat, 30 Dec 2023 01:06:16 +0100 Subject: [PATCH] remove needless url string manipulation --- .../run-tab/src/lib/components/lowlevelInteractionIcon.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/remix-ui/run-tab/src/lib/components/lowlevelInteractionIcon.tsx b/libs/remix-ui/run-tab/src/lib/components/lowlevelInteractionIcon.tsx index 2c84e2e984..47c9bdd528 100644 --- a/libs/remix-ui/run-tab/src/lib/components/lowlevelInteractionIcon.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/lowlevelInteractionIcon.tsx @@ -8,8 +8,7 @@ export type LowLevelInteractionIconProps = { } export function LowLevelInteractionIcon (props: LowLevelInteractionIconProps) { - const getVersion = () => window.location.href.split('=')[5].split('+')[0].split('-')[1] - const [version, setVersion] = useState(() => getVersion()) + const [version, setVersion] = useState('') useEffect(() => { const listenForCompileFinished = async () => {