Skip to content

Commit

Permalink
Remove unnecessary memo
Browse files Browse the repository at this point in the history
  • Loading branch information
wlee221 committed Nov 7, 2022
1 parent 156c151 commit 120e814
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,9 @@ function ChangePassword({
};

/** Validator */
const defaultValidators = React.useMemo(
() => getDefaultPasswordValidator(),
[]
);

const passwordValidators: FieldValidator[] = React.useMemo(
() => validate ?? defaultValidators,
[validate, defaultValidators]
() => validate ?? getDefaultPasswordValidator(),
[validate]
);

const validateNewPassword = (
Expand Down

0 comments on commit 120e814

Please sign in to comment.