Skip to content

Commit f623faf

Browse files
joeizangAniket-Engg
authored andcommitted
convert version to state so it changes with compiler version state
1 parent cbb2aa5 commit f623faf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { CustomTooltip } from '@remix-ui/helper'
2-
import React from 'react'
2+
import React, { useState } from 'react'
33
import { FormattedMessage } from 'react-intl'
44

55
export function LowLevelInteractionIcon () {
6-
const version = window.location.href.split('=')[5].split('+')[0].split('-')[1]
6+
const [version, _] = useState(window.location.href.split('=')[5].split('+')[0].split('-')[1])
77

88
return (
99
<>

0 commit comments

Comments
 (0)