fix errors
This commit is contained in:
parent
3081c5fd7d
commit
172196f561
@ -31,7 +31,7 @@ export const apiRequest = (url, {
|
|||||||
})
|
})
|
||||||
.then(response => new Promise(resolve => {
|
.then(response => new Promise(resolve => {
|
||||||
if (response.data.redirect || response.status === 401) {
|
if (response.data.redirect || response.status === 401) {
|
||||||
window.location.replace('/');
|
window.location.replace('/auth');
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
// dispatch(auth(false));
|
// dispatch(auth(false));
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ const Description = ({onLoadMore, isLoadingMore}) => {
|
|||||||
candidatesListArr.map((el) => (
|
candidatesListArr.map((el) => (
|
||||||
<div className='row' key={el.id}>
|
<div className='row' key={el.id}>
|
||||||
<div className='col-2 col-xs-12'>
|
<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>
|
||||||
<div className='col-12 col-xl-6'>
|
<div className='col-12 col-xl-6'>
|
||||||
<h3 className='description__title'>
|
<h3 className='description__title'>
|
||||||
|
Loading…
Reference in New Issue
Block a user