Skip to content

Commit

Permalink
added fix opportunity for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Jul 5, 2021
1 parent 97ef10a commit 92f463a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"serve:test": "cross-env NODE_ENV=test nodemon --exec babel-node server/index.js",
"start-front": "react-scripts start",
"build": "node ./buildScript",
"lint": "npx eslint --ext jsx,js src server",
"lint": "npx eslint --fix --ext jsx,js src server",
"test": "npm run lint && react-scripts test",
"test:e2e": "concurrently \"npm run serve:test\" \"cypress run\" --kill-others --success first",
"start": "concurrently \"npm run start-server\" \"npm run start-front\" --kill-others --kill-others-on-fail",
Expand Down
6 changes: 2 additions & 4 deletions src/pages/HomePage/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,18 @@ const HomePage = ({
await fetchDomains(0, false, isTech);
setIsLoading(false);
})();
}
}
else if (previousTechParams !== isTech) {
(async () => {
await fetchDomains(0, false, isTech);
setIsLoading(false);
})();
}
}
else {
setIsLoading(false);
}
}, [fetchDomains, isTech]);

console.log(totalDomains);

if (isLoading) return <Loading />;

return (
Expand Down

0 comments on commit 92f463a

Please sign in to comment.