From e15ce861a3f78bcfd2a2ea79b53a818f586455ce Mon Sep 17 00:00:00 2001 From: Z1chi Date: Mon, 16 Jan 2023 15:30:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BF=D0=B8=D1=81?= =?UTF-8?q?=D1=8B=D0=B2=D0=B0=D1=8E=20=D1=81=D0=BF=D0=BE=D1=80=D0=BD=D1=8B?= =?UTF-8?q?=D0=B5=20=D1=80=D0=B5=D1=88=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ProfileHeader/ProfileHeader.js | 2 +- src/pages/FormPage.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ProfileHeader/ProfileHeader.js b/src/components/ProfileHeader/ProfileHeader.js index ad8c199c..2dcf8003 100644 --- a/src/components/ProfileHeader/ProfileHeader.js +++ b/src/components/ProfileHeader/ProfileHeader.js @@ -25,7 +25,7 @@ export const ProfileHeader = () => { const [isLoggingOut, setIsLoggingOut] = useState(false); useEffect(() => { - apiRequest(`/api/profile/${localStorage.getItem('cardId')}`) + apiRequest(`/profile/${localStorage.getItem('cardId')}`) .then((profileInfo) => dispatch(setProfileInfo(profileInfo)) ); diff --git a/src/pages/FormPage.js b/src/pages/FormPage.js index 1c525ded..e637ae0b 100644 --- a/src/pages/FormPage.js +++ b/src/pages/FormPage.js @@ -33,7 +33,7 @@ const FormPage = () => { }; if (!candidate.id) { - apiRequest('/api/profile', { + apiRequest('/profile', { params: Number(params.id) }) .then((el) => dispatch(currentCandidate(el)))