Merge pull request #737 from bluewave-labs/fix/admin-check-create-button

Add admin check to button
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-08-28 10:34:10 -07:00
commit 1ab423cd76
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"