Skip to content

Commit

Permalink
Fix logo redirect to home page (#5904)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad authored Jul 31, 2024
1 parent 5bd1fe7 commit 3f025cc
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 3f025cc

Please sign in to comment.