diff --git a/src/components/Profile/ProfileHeader.js b/src/components/Profile/ProfileHeader.js index 95d8ca0d..f9374d34 100644 --- a/src/components/Profile/ProfileHeader.js +++ b/src/components/Profile/ProfileHeader.js @@ -10,6 +10,7 @@ import './profileHeader.scss' export const ProfileHeader = () => { const [isLoggingOut, setIsLoggingOut] = useState(false); + const [gitInfo, setGitInfo] = useState([]) const dispatch = useDispatch(); const userRole = useSelector(getRole); const profileInfo = useSelector(getProfileInfo) @@ -21,6 +22,11 @@ export const ProfileHeader = () => { }).then((profileInfo) => { dispatch(setProfileInfo(profileInfo)) }) + fetchGet({ + link: `${process.env.REACT_APP_API_URL}/api/profile/portfolio-projects?card_id=${localStorage.getItem('cardId')}`, + }).then((responseGit) => { + setGitInfo(responseGit) + }) }, []) return(