diff --git a/src/common/util/useCurrentPerson.ts b/src/common/util/useCurrentPerson.ts index a68bb231c..3ab60bc0f 100644 --- a/src/common/util/useCurrentPerson.ts +++ b/src/common/util/useCurrentPerson.ts @@ -44,7 +44,7 @@ export function useCurrentPerson() { authQueryFnFactory(session?.accessToken), { retry: (count, err) => { - if (err.isAxiosError && err.response?.status === 401) { + if (err.isAxiosError && err.response?.status === 401 && count > 3) { return false } return true