Skip to content

Commit

Permalink
✏️ Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Apr 22, 2024
1 parent b928a08 commit 2a0d4cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/client-ts/src/components/RootLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const RootLayout = () => {

const { user } = useStytchUser();
const {data, isLoading, isError, error} = useProfile(user?.user_id!);

if(isLoading) {
console.log("loading profiles");
}
Expand All @@ -54,9 +55,9 @@ export const RootLayout = () => {

const { idProject, setIdProject } = useProjectStore();

const { data : projects, isLoading: isloadingProjects } = useProjectsByUser(profile!.id_user);
const { data : projects, isLoading: isloadingProjects } = useProjectsByUser(profile?.id_user!);

useEffect(()=> {
useEffect(() => {
if(projects && projects[0]){
setIdProject(projects[0].id_project);
}
Expand Down

0 comments on commit 2a0d4cc

Please sign in to comment.