diff --git a/src/components/AppLayout/AppLayout.tsx b/src/components/AppLayout/AppLayout.tsx index b22f4dc2d..f27f1c4dd 100644 --- a/src/components/AppLayout/AppLayout.tsx +++ b/src/components/AppLayout/AppLayout.tsx @@ -198,7 +198,7 @@ const AppLayout: React.FC = ({ children }) => { {isPickerActive && ( )} @@ -207,7 +207,7 @@ const AppLayout: React.FC = ({ children }) => { user={user} onLogout={logout} onProfileClick={() => - navigate(staffMemberDetailsUrl(user.id)) + navigate(staffMemberDetailsUrl(user?.id)) } onThemeToggle={toggleTheme} />