Fix missing promise handling in formActiveRedirect

Added a then() clause to handle the resolved promise after calling handleCheckForm in the useEffect. This ensures any asynchronous operations complete as expected and avoids potential unhandled promise rejections.
This commit is contained in:
2024-08-10 03:24:46 +02:00
parent a08c55ec41
commit 6215944972
+1 -1
View File
@@ -17,7 +17,7 @@ const FormActiveRedirect = (formData: FormData) => {
}; };
useEffect(() => { useEffect(() => {
handleCheckForm(); handleCheckForm().then(r => {});
}, []); }, []);
if (isLoading) { if (isLoading) {