init loading state

This commit is contained in:
Alex Holliday
2025-02-03 16:19:56 -08:00
parent 9e1dc92dbf
commit b20c87cabc

View File

@@ -10,6 +10,7 @@ const useCreateStatusPage = () => {
const [networkError, setNetworkError] = useState(false);
const createStatusPage = async ({ form }) => {
setIsLoading(true);
try {
await networkService.createStatusPage({ authToken, user, form });
return true;