Skip to content

Commit

Permalink
correcting spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Oskar Kocjan authored and Oskar Kocjan committed Aug 11, 2022
1 parent 7ad3b47 commit 5a7ad5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions verification/curator-service/ui/src/components/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function ChangePasswordFormInProfile(): JSX.Element {
const classes = useStyles();
const dispatch = useAppDispatch();

const [passwordStrenght, setPasswordStrenght] = useState<number>(0);
const [passwordStrength, setPasswordStrength] = useState(0);
const [oldPasswordVisible, setOldPasswordVisible] = useState(false);
const [passwordVisible, setPasswordVisible] = useState(false);
const [passwordConfirmationVisible, setPasswordConfirmationVisible] =
Expand Down Expand Up @@ -149,7 +149,7 @@ export function ChangePasswordFormInProfile(): JSX.Element {
},
)
.test('password-strong-enough', 'Password too weak', () => {
return passwordStrenght > 2;
return passwordStrength > 2;
}),
passwordConfirmation: Yup.string().test(
'passwords-match',
Expand Down Expand Up @@ -289,8 +289,8 @@ export function ChangePasswordFormInProfile(): JSX.Element {
password={formik.values.password}
scoreWords={[]}
shortScoreWord=""
onChangeScore={(score) => {
setPasswordStrenght(score);
onChangeScore={(score: number) => {
setPasswordStrength(score);
}}
/>
<FormHelperText>
Expand Down

0 comments on commit 5a7ad5b

Please sign in to comment.