diff --git a/app/components/TopBar.tsx b/app/components/TopBar.tsx index 708662be3..4c5e2e236 100644 --- a/app/components/TopBar.tsx +++ b/app/components/TopBar.tsx @@ -22,8 +22,6 @@ export function TopBar({ children }: { children: React.ReactNode }) { // fetch happens in loader wrapping all authed pages const { me } = useCurrentUser() - const loggedIn = !!me - // toArray filters out nulls, which is essential because the silo/system // picker is going to come in null when the user isn't supposed to see it const [cornerPicker, ...otherPickers] = React.Children.toArray(children) @@ -62,15 +60,9 @@ export function TopBar({ children }: { children: React.ReactNode }) { Settings - {loggedIn ? ( - logout.mutate({})}> - Sign out - - ) : ( - navToLogin({ includeCurrent: true })}> - Sign In - - )} + logout.mutate({})}> + Sign out +