Skip to content

Commit

Permalink
fix for anon helper
Browse files Browse the repository at this point in the history
  • Loading branch information
karlkeefer committed Oct 11, 2022
1 parent 9198812 commit acc9276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/src/Shared/Roles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const LoggedIn = ({ children }: { children: React.ReactNode }) => {

export const Anon = ({ children }: { children: React.ReactNode }) => {
const { user } = useContext(UserContainer)
return <>{user.id === 0 && children}</>
return <>{(user.id === 0 || !user.id) && children}</>
}

0 comments on commit acc9276

Please sign in to comment.