Skip to content

Commit

Permalink
Merge pull request #10 from TomasKetterer/changeWorkFlow
Browse files Browse the repository at this point in the history
fix app
  • Loading branch information
TomasKetterer authored Oct 17, 2024
2 parents cf26395 + 9fb152b commit af078f5
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,20 +241,14 @@ function App() {
}
};


// eslint-disable-next-line
useEffect(() => {
const initializeApp = async () => {
if (isAuthenticated) {
await createUser();
setTimeout(async () => {
await fetchFixtures();
await fetchUser();
}, 3000);
}
};

initializeApp();
}, [isAuthenticated, createUser, fetchFixtures, fetchUser]);
if (isAuthenticated) {
createUser();
fetchFixtures();
fetchUser();
}
}, [isAuthenticated]);

useEffect(() => {
const applyFilters = () => {
Expand Down

0 comments on commit af078f5

Please sign in to comment.