From 172196f56174553a006877d4222c62ca2f162c08 Mon Sep 17 00:00:00 2001 From: Z1chi Date: Fri, 20 Jan 2023 18:39:54 +0300 Subject: [PATCH] fix errors --- src/api/request.js | 2 +- src/components/Description/Description.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) => (
- + {el.photo && }