Skip to content

Commit 2bfc9f3

Browse files
committed
fix: Wrong variable name
1 parent 10f1138 commit 2bfc9f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LanguageClient.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ function LanguageClient ({
4545
const [willShutdown, setWillShutdown] = useState(false)
4646
const [counter, setCounter] = useState(1)
4747

48-
const isUserInactive = useIsUserActive(userInactivityDelay)
49-
const shouldShutdownLanguageClientForInactivity = useShouldShutdownLanguageClient(isUserInactive, userInactivityShutdownDelay)
50-
const restartAllowed = !isUserInactive
48+
const isUserActive = useIsUserActive(userInactivityDelay)
49+
const shouldShutdownLanguageClientForInactivity = useShouldShutdownLanguageClient(isUserActive, userInactivityShutdownDelay)
50+
const restartAllowed = !isUserActive
5151

5252
useEffect(() => {
5353
if (willShutdown && restartAllowed) {

0 commit comments

Comments
 (0)