Skip to content

Commit

Permalink
#127 fix: correção da sidebar para não admin.
Browse files Browse the repository at this point in the history
  • Loading branch information
JPedroCh committed Jun 21, 2023
1 parent ab9fb6f commit 2a92d9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/side-bar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const SideBar = memo(() => {
</Text>
))}
<Box position="absolute" bottom="20px" fontSize="4xs">
{user?.role === 'admin' ? (
{user?.role === 'administrador' ? (
<Text
key={optionUser.name}
fontSize="4xs"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/change-password/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function ChangePassword() {
} else {
const data = {
userId: user?.id,
username: user?.name,
username: user?.email,
password: newPassword,
actualPassword,
};
Expand Down

0 comments on commit 2a92d9b

Please sign in to comment.