From 86f61d675be7f39bb4a6d4e848d560ff08edfa24 Mon Sep 17 00:00:00 2001 From: Dozzy7528 Date: Tue, 3 Feb 2026 13:54:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= =?UTF-8?q?=20=D0=B2=20`OtherProfile`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/OtherProfile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OtherProfile.js b/src/OtherProfile.js index ec64dc7..7de5494 100644 --- a/src/OtherProfile.js +++ b/src/OtherProfile.js @@ -5,11 +5,11 @@ import axios from 'axios'; import Header from './Header'; const OtherProfile = () => { + const navigate = useNavigate(); const {id} = useParams(''); const [user, setUser] = useState(null); const [avatar, setAvatar] = useState(''); const [error, setError] = useState(''); - const navigate = useNavigate(); const [user_description, setUserDescription] = useState(''); useEffect(() => { @@ -31,7 +31,7 @@ const OtherProfile = () => { } }; checkSession(); - }, []); + }, [id, navigate]); return ( <>
@@ -40,7 +40,7 @@ const OtherProfile = () => {
{user}
- + {''}/
{user_description}