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:
parent
a08c55ec41
commit
6215944972
|
|
@ -17,7 +17,7 @@ const FormActiveRedirect = (formData: FormData) => {
|
|||
};
|
||||
|
||||
useEffect(() => {
|
||||
handleCheckForm();
|
||||
handleCheckForm().then(r => {});
|
||||
}, []);
|
||||
|
||||
if (isLoading) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user