diff --git a/src/pages/Summary/Summary.jsx b/src/pages/Summary/Summary.jsx index c66b9dc4..93d68277 100644 --- a/src/pages/Summary/Summary.jsx +++ b/src/pages/Summary/Summary.jsx @@ -32,7 +32,7 @@ export const Summary = () => { const [gitInfo, setGitInfo] = useState([]); const [editSummaryOpen, setEditSummaryOpen] = useState(false); const [editSkills, setEditSkills] = useState(false); - const [userInfo, setUserInfo] = useState({}) + const [userInfo, setUserInfo] = useState({}); const [summary, setSummary] = useState(""); const [selectedSkills, setSelectedSkills] = useState([]); const [selectSkillsOpen, setSelectSkillsOpen] = useState(false); @@ -67,11 +67,11 @@ export const Summary = () => { fio: res.userCard.fio, specification: res.userCard.specification, level: res.userCard.level_title, - position: res.userCard.position.name, - }) - setSummary(res.userCard.vc_text) - setSelectedSkills(res.userCard.skillValues) - }) + position: res.userCard.position.name + }); + setSummary(res.userCard.vc_text); + setSelectedSkills(res.userCard.skillValues); + }); } }, [userId]); @@ -149,19 +149,29 @@ export const Summary = () => {
- {userId ? userInfo.fio : (profileInfo?.fio || profileInfo?.username)}{" "} + {userId + ? userInfo.fio + : profileInfo?.fio || profileInfo?.username}{" "} {userId ? userInfo.specification : profileInfo.specification}