diff --git a/src/api/request.js b/src/api/request.js index 0c6b8255..4b40d8b1 100644 --- a/src/api/request.js +++ b/src/api/request.js @@ -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)); } diff --git a/src/components/Description/Description.js b/src/components/Description/Description.js index 7426a163..d02631a5 100644 --- a/src/components/Description/Description.js +++ b/src/components/Description/Description.js @@ -33,7 +33,7 @@ const Description = ({onLoadMore, isLoadingMore}) => { candidatesListArr.map((el) => (