Skip to content

Commit

Permalink
Correção na Página de configuirações
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Jan 5, 2025
1 parent f62577d commit 7fe12b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/Settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const Settings = ({ onThemeConfigUpdate }) => {
</ErrorBoundary>
</Container>
)}
{tabValue === 1 && (
{tabValue === (user.profile === "masteradmin" ? 1 : 0) && (
<Container className={classes.container}>
<ErrorBoundary>
<ComponentSettings
Expand All @@ -152,7 +152,7 @@ const Settings = ({ onThemeConfigUpdate }) => {
</ErrorBoundary>
</Container>
)}
{tabValue === 2 && (
{tabValue === (user.profile === "masteradmin" ? 2 : 1) && (
<Container className={classes.container}>
<ErrorBoundary>
<Integrations />
Expand Down

0 comments on commit 7fe12b2

Please # to comment.