Skip to content

Commit

Permalink
dependency was missing in the useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbykolev committed Nov 21, 2024
1 parent 567790c commit c4c2e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/topLevelPages/Home/HomePageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const HomePageLayout = ({ children }: PropsWithChildren<{}>) => {
setTitle(t('pages.home.sections.welcome.welcome-back', { username: user?.firstName }));
setSubTitle(t('pages.home.subtitle'));
}
}, [isAuthenticated]);
}, [isAuthenticated, user]);

return (
<>
Expand Down

0 comments on commit c4c2e6f

Please sign in to comment.