From 6215944972fff5484801fbf6d5875af1e0ce4bd0 Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Sat, 10 Aug 2024 03:24:46 +0200 Subject: [PATCH] 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. --- src/components/form/formActiveRedirect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/form/formActiveRedirect.tsx b/src/components/form/formActiveRedirect.tsx index 4e45219..943526b 100644 --- a/src/components/form/formActiveRedirect.tsx +++ b/src/components/form/formActiveRedirect.tsx @@ -17,7 +17,7 @@ const FormActiveRedirect = (formData: FormData) => { }; useEffect(() => { - handleCheckForm(); + handleCheckForm().then(r => {}); }, []); if (isLoading) {