change credentials to be used with the new auth library

This commit is contained in:
Leon Serfaty G
2025-07-17 11:50:07 +00:00
parent 3791c0faf6
commit e5d3f49363
2 changed files with 12 additions and 11 deletions
+5 -6
View File
@@ -54,11 +54,11 @@ export default function UserProfilePage() {
const fetchUser = async () => {
const user = await getUser();
if (user) {
reset({
name: user.name,
email: user.email,
password: "",
confirmPassword: ""
reset({
name: user.name,
email: user.email,
password: "",
confirmPassword: ""
});
}
};
@@ -78,7 +78,6 @@ export default function UserProfilePage() {
title: "Profile Updated",
description: "Your profile has been updated successfully.",
});
// Reset form to new values and clear password fields
reset({ ...data, password: '', confirmPassword: '' });
} else {
toast({