remove reference to state

This commit is contained in:
Alex Holliday committed 2025-06-13 10:52:05 +08:00
1 parent afece4df65
commit 57f4db8d37
1 file changed
+1 -2
+1 -2
View File
@@ -28,7 +28,6 @@ import { useCreateMonitor } from "../../../Hooks/monitorHooks";
const CreateMonitor = () => {
// Redux state
const { user } = useSelector((state) => state.auth);
const { isLoading } = useSelector((state) => state.uptimeMonitors);
// Local state
const [errors, setErrors] = useState({});
@@ -467,7 +466,7 @@ const CreateMonitor = () => {
variant="contained"
color="accent"
disabled={!Object.values(errors).every((value) => value === undefined)}
loading={isLoading || isCreating}
loading={isCreating}
>
{t("createMonitor")}
</Button>