Skip to content

Commit

Permalink
fix: change mutation name
Browse files Browse the repository at this point in the history
  • Loading branch information
victorggonzalez committed Jul 13, 2022
1 parent 54f59b1 commit 558f0a2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/member/PasswordSetting.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ const PasswordSetting = () => {
const [confirmPassword, setConfirmPassword] = useState('');
const [newPasswordError, setNewPasswordError] = useState(null);
const [confirmPasswordError, setConfirmPasswordError] = useState(null);
const { mutate: onUpdatePassword } = useMutation(
MUTATION_KEYS.UPDATE_PASSWORD,
);
const { mutate: updatePassword } = useMutation(MUTATION_KEYS.UPDATE_PASSWORD);

const verifyEmptyPassword = () => {
const checkingNewPassword = passwordValidator(newPassword);
Expand Down Expand Up @@ -90,7 +88,7 @@ const PasswordSetting = () => {
// check password strength for new password
strengthValidator(newPassword);
// perform password update
onUpdatePassword({
updatePassword({
password: newPassword,
currentPassword,
});
Expand Down

0 comments on commit 558f0a2

Please sign in to comment.