avatar url fix

This commit is contained in:
kurpfish 2021-08-16 17:56:28 +03:00
parent 701a606a54
commit 58e6c32338
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ const Description = ({ onLoadMore }) => {
candidatesListArr.map((el) => (
<div className="row" key={el.id}>
<div className="col-2">
<img className={style.description__img} src={`${process.env.REACT_APP_BASE_URL}${el.photo}`} alt="" />
<img className={style.description__img} src={el.photo}} alt="" />
</div>
<div className="col-12 col-xl-6">
<h3 className={style.description__title}>
@ -84,7 +84,7 @@ const Description = ({ onLoadMore }) => {
? filteredListArr.map((el) => (
<div className="row" key={el.id}>
<div className="col-2">
<img className={style.description__img} src={`${process.env.REACT_APP_BASE_URL}${el.photo}`} alt="" />
<img className={style.description__img} src={el.photo} alt="" />
</div>
<div className="col-12 col-xl-6">
<h3 className={style.description__title}>

View File

@ -19,7 +19,7 @@ const Sidebar = ({ candidate }) => {
return (
<div className={style.candidateSidebar}>
<div className={style.candidateSidebar__info}>
<img src={`${process.env.REACT_APP_BASE_URL}${candidate.photo}`} alt="" />
<img src={candidate.photo} alt="" />
{ candidate && candidate.years_of_exp && <>
<p className={style.candidateSidebar__info__e}>Опыт работы</p>
<p className={style.candidateSidebar__info__y}>{getYearsString(candidate.years_of_exp)}</p>