Skip to content

Commit f2831e2

Browse files
committed
Deleted useEffect from Profile page
1 parent 1724247 commit f2831e2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/pages/Profile/index.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useEffect } from 'react';
1+
import React, { useState } from 'react';
22
import { useSelector, shallowEqual } from 'react-redux';
33

44
import { useFormatMessage } from 'hooks';
@@ -16,10 +16,6 @@ const Profile = () => {
1616

1717
const [profile, setProfile] = useState(userData);
1818

19-
useEffect(() => {
20-
setProfile(userData);
21-
}, [userData]);
22-
2319
return (
2420
<>
2521
<section className="hero is-hero-bar">

0 commit comments

Comments
 (0)