Add admin check to button

This commit is contained in:
Alex Holliday committed 2024-08-27 19:57:46 -07:00
1 parent 57058864ec
commit 934c558700
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ const Monitors = ({ isAdmin }) => {
>
Hello, {authState.user.firstName}
</Typography>
{monitorState.monitors?.length !== 0 && (
{isAdmin && monitorState.monitors?.length !== 0 && (
<Button
level="primary"
label="Create monitor"