Browse Source

no message

KIM-JINO5 2 tháng trước cách đây
mục cha
commit
219ddd38e4
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      app/(auth)/approval/page.tsx

+ 4 - 2
app/(auth)/approval/page.tsx

@@ -164,8 +164,10 @@ export default function Approval()
             setCanResend(false);
             setResendApprovalSecond(getResendApprovalSecond());
             setVerifyCode("");
-        } catch (err: any) {
-            setError(err.message);
+        } catch (err) {
+            if (err instanceof Error) {
+                setError(err.message);
+            }
         }
     };