From 3f5d4efa629601890ac9c3413aae3025eb9a7cc9 Mon Sep 17 00:00:00 2001 From: Aditya Pawar Date: Mon, 8 Apr 2024 17:46:18 -0700 Subject: [PATCH] Remove unecessary async --- src/app/auth/resetPassword/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/auth/resetPassword/index.tsx b/src/app/auth/resetPassword/index.tsx index 32fd977..5c353bb 100644 --- a/src/app/auth/resetPassword/index.tsx +++ b/src/app/auth/resetPassword/index.tsx @@ -35,7 +35,7 @@ function ResetPasswordScreen() { } }, [hasUppercase, hasLowercase, hasLength, hasNumber, isDifferent]); - const checkPassword = async (text: string) => { + const checkPassword = (text: string) => { if (text !== '') { isPasswordSameAsBefore(text, session?.user?.id).then(isSame => setIsDifferent(!isSame)) setHasUppercase(text !== text.toLowerCase());