diff --git a/package.json b/package.json index 9cc6de6..537fc8e 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ }, "scripts": { "start": "webpack serve", - "lint": "pnpm exec eslint . && pnpm exec prettier -c \"src/**/*\"", - "lint:fix": "pnpm exec eslint --fix . && pnpm exec prettier --write \"src/**/*\"", + "lint": "pnpm exec eslint .", + "lint:fix": "pnpm exec eslint --fix .", "build": "pnpm run lint && tailwind -i ./src/index.css -o ./src/tailwind.css && webpack --mode production", "dev": "concurrently -k \"webpack serve --mode development\" \"tailwindcss -i ./src/index.css -o ./src/tailwind.css --watch\" \"tsc -w\"", "prod": "concurrently -k \"webpack serve --mode production\" \"tailwindcss -i ./src/index.css -o ./src/tailwind.css --watch\" \"tsc -w\"" diff --git a/src/App/App.tsx b/src/App/App.tsx index e9d558c..d050568 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -93,6 +93,7 @@ function App() { const { isMinimode } = useMinimode(); const [currentPage, setCurrentPage] = React.useState(PAGES.PLAYER_LIST); + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { closeModal, openModal, modalContent } = useModal(); const renderPage = () => { @@ -126,7 +127,7 @@ function App() { try { const configured = await isBackendConfigured(); if (!configured) throw new Error('Backend not configured'); - if (modalContent) closeModal(); + closeModal(); return true; } catch (e) { console.error('Error verifying backend configuration', e); @@ -142,7 +143,7 @@ function App() { do { connected = await isBackendConnected(); if (!connected) { - await new Promise((resolve) => setTimeout(resolve, 5000)); // Wait 5 seconds before retrying + await new Promise((resolve) => setTimeout(resolve, 1000)); // Wait 1 second before retrying } } while (!connected); verifyConfigured(); @@ -162,7 +163,7 @@ function App() { if (useFakedata) return; verificationRoutine(); - const intervalId = setInterval(verificationRoutine, 5000); + const intervalId = setInterval(verificationRoutine, 1000); return () => { clearInterval(intervalId);