again shiiiit!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user