Skip to content

Commit dd4392f

Browse files
joeizangAniket-Engg
authored andcommitted
remove needless url string manipulation
1 parent e0bff86 commit dd4392f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/remix-ui/run-tab/src/lib/components/lowlevelInteractionIcon.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ export type LowLevelInteractionIconProps = {
88
}
99

1010
export function LowLevelInteractionIcon (props: LowLevelInteractionIconProps) {
11-
const getVersion = () => window.location.href.split('=')[5].split('+')[0].split('-')[1]
12-
const [version, setVersion] = useState(() => getVersion())
11+
const [version, setVersion] = useState('')
1312

1413
useEffect(() => {
1514
const listenForCompileFinished = async () => {

0 commit comments

Comments
 (0)