Skip to content

Commit

Permalink
changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremygordillo committed Mar 21, 2024
1 parent d01af64 commit d69b773
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/nextjs-website/src/app/auth/change-password/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const ChangePassword = () => {
ResetPasswordSteps.CHANGE_PASSWORD
);

const onChangePassword = useCallback(
const onPasswordChanged = useCallback(
(password: string) => {
setSubmitting(true);
Auth.forgotPasswordSubmit(username, code, password)
Expand Down Expand Up @@ -80,7 +80,7 @@ const ChangePassword = () => {
{resetPasswordSteps === ResetPasswordSteps.CHANGE_PASSWORD ? (
<ChangePasswordForm
submitting={submitting}
onSubmit={onChangePassword}
onSubmit={onPasswordChanged}
/>
) : (
<PasswordChangedCard />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ChangePasswordForm = ({
confirmPasswordError: false,
});

const handleChange = (ev: ChangeEvent<HTMLInputElement>) => {
const handlePasswordChanged = (ev: ChangeEvent<HTMLInputElement>) => {
setFieldErrors({
passwordError: false,
confirmPasswordError: false,
Expand Down Expand Up @@ -102,7 +102,7 @@ const ChangePasswordForm = ({
}
label={shared('password')}
value={passwords.password}
onChange={handleChange}
onChange={handlePasswordChanged}
/>
<PasswordTextField
id='confirmPassword'
Expand All @@ -114,7 +114,7 @@ const ChangePasswordForm = ({
}
label={shared('confirmPassword')}
value={passwords.confirmPassword}
onChange={handleChange}
onChange={handlePasswordChanged}
/>
</Stack>
<Stack
Expand Down

0 comments on commit d69b773

Please sign in to comment.