Skip to content

Commit e0df8b3

Browse files
committed
Changed profile page state
1 parent f2831e2 commit e0df8b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/Profile/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const Profile = () => {
1414
shallowEqual
1515
);
1616

17-
const [profile, setProfile] = useState(userData);
17+
const [user, setUser] = useState(userData);
1818

1919
return (
2020
<>
@@ -27,8 +27,8 @@ const Profile = () => {
2727
<UserForm
2828
isEditing
2929
isProfile
30-
user={profile}
31-
setUser={setProfile}
30+
user={user}
31+
setUser={setUser}
3232
action={modifyUser}
3333
/>
3434
<ChangePassword />

0 commit comments

Comments
 (0)