Skip to content

Commit

Permalink
🐛 Fix a bug
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
naelob committed Apr 24, 2024
1 parent 01846ed commit ab486a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/client-ts/src/components/RootLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const RootLayout = () => {
}, [data, setProfile]);

// Effect for fetching projects
useEffect(() => {
/*useEffect(() => {
if (profile && profile.id_user) {
console.log("profile is => " + JSON.stringify(profile));
const fetchProjects = async () => {
Expand All @@ -84,7 +84,7 @@ export const RootLayout = () => {
fetchProjects();
}
}, [profile, setIdProject, setProjects]); // Depend on profile.id_user to trigger this effect

*/
// Handling loading and error
if (isLoading) {
console.log("loading profiles");
Expand Down

0 comments on commit ab486a2

Please sign in to comment.