Skip to content

Commit

Permalink
Add correct condition.
Browse files Browse the repository at this point in the history
Signed-off-by: Mirjam Aulbach <mirjam.aulbach@aiven.io>
  • Loading branch information
programmiri committed Feb 16, 2024
1 parent 19cd706 commit 0d78d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coral/src/services/router-utils/route-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const SuperadminRoute = ({
const redirectParam = routeParams[param] ? routeParams[param] : "";
const redirectPath = `${redirectStaticPart}${redirectParam}`;

const isSuperadmin = userrole !== "SUPERADMIN";
const isSuperadmin = userrole === "SUPERADMIN";

console.log("userrole", userrole);
useEffect(() => {
Expand Down

0 comments on commit 0d78d15

Please sign in to comment.