From e81918ee487b1c724ce72b3b9abfb1e5af49a04f Mon Sep 17 00:00:00 2001 From: Fredrik Oseberg Date: Fri, 23 Apr 2021 15:31:42 +0200 Subject: [PATCH] fix: password --- .../common/ResetPasswordForm/PasswordChecker/PasswordChecker.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/component/user/common/ResetPasswordForm/PasswordChecker/PasswordChecker.tsx b/frontend/src/component/user/common/ResetPasswordForm/PasswordChecker/PasswordChecker.tsx index 3d6ec94f9d..cf2da0be2b 100644 --- a/frontend/src/component/user/common/ResetPasswordForm/PasswordChecker/PasswordChecker.tsx +++ b/frontend/src/component/user/common/ResetPasswordForm/PasswordChecker/PasswordChecker.tsx @@ -47,6 +47,7 @@ const PasswordChecker = ({ password, callback }: IPasswordCheckerProps) => { }, [password]); const checkPassword = useCallback(async () => { + if (!password) return; if (password.length < 3) return; try { const res = await makeValidatePassReq();