Skip to content

Commit 37b197b

Browse files
1aurenddananjohnson
authored andcommitted
[B] Fix double login redirect regression
1 parent 589cfef commit 37b197b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/src/global/components/FatalError/AppWrapper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export default function FatalErrorAppWrapper(props) {
1919

2020
const isAuthorizationError = error.status === 403 || error.status === 401;
2121

22+
if (isAuthorizationError && redirectPath === "/login") return null;
23+
2224
const redirectOrNotify = () => {
2325
if (!currentUser?.id) {
2426
return history.push({

0 commit comments

Comments
 (0)