We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa0e433 commit da033b2Copy full SHA for da033b2
2 files changed
src/Components/TopBar/StatusBlock/StatusBlock.jsx
@@ -40,7 +40,9 @@ export function StatusBlock() {
40
useEffect(() => {
41
if (user === null) {
42
emptyCache().then(() => {
43
- navigate('/login');
+ if (window.location.pathname !== '/agreement') {
44
+ navigate('/login');
45
+ }
46
});
47
}
48
}, [user, navigate]);
src/Data/Common.js
@@ -37,6 +37,10 @@ export async function handleErrors(response) {
37
* @return: response
38
*/
39
if (response.status === 401) {
+ console.log(window.location.pathname)
+ if (window.location.pathname === "/agreement") {
+ return;
if (!["/login", "/register", "/reset"].includes(window.location.pathname)) {
window.location.href = "/login";
0 commit comments