feat(settings/profile): reset password form after validating password change

This commit is contained in:
190km
2024-12-20 01:00:16 +01:00
parent bf2551b0f6
commit fdfa927532

View File

@@ -104,6 +104,7 @@ export const ProfileForm = () => {
.then(async () => { .then(async () => {
await refetch(); await refetch();
toast.success("Profile Updated"); toast.success("Profile Updated");
form.reset();
}) })
.catch(() => { .catch(() => {
toast.error("Error to Update the profile"); toast.error("Error to Update the profile");