diff --git a/frontend/src/screens/Start.tsx b/frontend/src/screens/Start.tsx index 267f3879..58a52fe4 100644 --- a/frontend/src/screens/Start.tsx +++ b/frontend/src/screens/Start.tsx @@ -22,9 +22,7 @@ export default function Start() { const [unlockPassword, setUnlockPassword] = React.useState(""); const [loading, setLoading] = React.useState(false); const [buttonText, setButtonText] = React.useState("Login"); - // we use this only for polling - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const { data: _ } = useInfo(true); + useInfo(true); // poll the info endpoint to auto-redirect when app is running const { data: csrf } = useCSRF(); const { toast } = useToast(); diff --git a/frontend/src/screens/setup/SetupFinish.tsx b/frontend/src/screens/setup/SetupFinish.tsx index 8d514ecf..9ccda8b2 100644 --- a/frontend/src/screens/setup/SetupFinish.tsx +++ b/frontend/src/screens/setup/SetupFinish.tsx @@ -15,9 +15,7 @@ import { request } from "src/utils/request"; export function SetupFinish() { const navigate = useNavigate(); const { nodeInfo, unlockPassword } = useSetupStore(); - // we use this only for polling - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const { data: _ } = useInfo(true); + useInfo(true); // poll the info endpoint to auto-redirect when app is running const { data: csrf } = useCSRF(); const [loading, setLoading] = React.useState(false); const [connectionError, setConnectionError] = React.useState(false);