Skip to content

Commit

Permalink
Fix logo redirect to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad committed Jul 30, 2024
1 parent ce75886 commit 7d18800
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/javascript/components/shared_components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export default function Header() {
const currentUser = useAuth();

let homePath = '/';
if (currentUser?.permissions?.CreateRoom === 'false') {
if (currentUser?.permissions?.CreateRoom === 'true') {
homePath = '/rooms';
} else if (currentUser?.permissions?.CreateRoom === 'false') {
homePath = '/home';
}

Expand Down

0 comments on commit 7d18800

Please sign in to comment.