Skip to content
Snippets Groups Projects
Verified Commit a9ce3c11 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

Fix errors

parent e5f13be6
Branches
No related tags found
1 merge request!19fix type imports
This diff is collapsed.
......@@ -51,7 +51,7 @@ const NewsContainer: React.FC = () => {
</Box>
</Grid>
))}
{profile && profile.role === Role.Admin && (
{profile && profile.profile?.role === Role.Admin && (
<Grid item container justify="center">
<Button variant="contained" color="secondary" onClick={toggleOn}>
Add news
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment