[FWA-3] fix cannot hash password
This commit is contained in:
@ -32,12 +32,9 @@ export default function Profile() {
|
||||
const { formData } = formHandler
|
||||
|
||||
createEffect(() => {
|
||||
formHandler.fillForm(
|
||||
{
|
||||
name: userInfo?.name,
|
||||
},
|
||||
{ silentValidation: false },
|
||||
)
|
||||
formHandler.fillForm({
|
||||
name: userInfo?.name,
|
||||
})
|
||||
})
|
||||
|
||||
const submit = async (event) => {
|
||||
@ -53,6 +50,8 @@ export default function Profile() {
|
||||
|
||||
if (resp.status === 200) {
|
||||
setUser(resp.data)
|
||||
formHandler.setFieldValue('password', '')
|
||||
formHandler.setFieldValue('confirm-password', '')
|
||||
notify.success({
|
||||
title: 'Update profile success!',
|
||||
description: 'Your profile has been updated!',
|
||||
|
Reference in New Issue
Block a user