Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
fix: remove eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jul 4, 2024
1 parent 8f95aa5 commit 7c3247f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions frontend/src/screens/Start.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
4 changes: 1 addition & 3 deletions frontend/src/screens/setup/SetupFinish.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7c3247f

Please sign in to comment.