again shiiiit!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11

This commit is contained in:
Leon Serfaty G
2025-07-17 11:37:20 +00:00
parent 36159df66d
commit bb11434141
2 changed files with 5 additions and 6 deletions
+1 -2
View File
@@ -60,7 +60,7 @@ export default function UserProfilePage() {
fetchUser();
}, [reset]);
const onSubmit: SubmitHandler<UserProfileFormValues> = async (data) => {
const onSubmit: SubmitHandler<UserProfileFormValues> = (data) => {
startSavingTransition(async () => {
const result = await updateUser({
name: data.name,
@@ -73,7 +73,6 @@ export default function UserProfilePage() {
title: "Profile Updated",
description: "Your profile has been updated successfully.",
});
// Clear password fields and reset dirty state after successful submission
reset({ ...data, password: '', confirmPassword: '' });
} else {
toast({