fix errors

This commit is contained in:
Дмитрий Савенко 2023-01-20 18:39:54 +03:00
parent 3081c5fd7d
commit 172196f561
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ export const apiRequest = (url, {
})
.then(response => new Promise(resolve => {
if (response.data.redirect || response.status === 401) {
window.location.replace('/');
window.location.replace('/auth');
localStorage.clear();
// dispatch(auth(false));
}

View File

@ -33,7 +33,7 @@ const Description = ({onLoadMore, isLoadingMore}) => {
candidatesListArr.map((el) => (
<div className='row' key={el.id}>
<div className='col-2 col-xs-12'>
<img className='description__img' src={urlForLocal(el.photo)} alt=''/>
{el.photo && <img className='description__img' src={urlForLocal(el.photo)} alt=''/>}
</div>
<div className='col-12 col-xl-6'>
<h3 className='description__title'>