Update hooks to use undefined for initial state

This commit is contained in:
Alex Holliday committed 2025-01-29 11:41:32 -08:00
1 parent a9851787e8
commit cfb5c7ae5d
3 files changed
+4 -4

No files matched your search

@@ -5,7 +5,7 @@ import { useNavigate } from "react-router-dom";
export const useMonitorFetch = ({ authToken, monitorId, dateRange }) => {
const [monitorIsLoading, setMonitorsIsLoading] = useState(false);
const [monitor, setMonitor] = useState({});
const [monitor, setMonitor] = useState(undefined);
const navigate = useNavigate();
useEffect(() => {