Skip to content

Commit

Permalink
Remove unecessary async
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapawar1 committed Apr 9, 2024
1 parent e11e776 commit 3f5d4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/auth/resetPassword/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 3f5d4ef

Please sign in to comment.