diff --git a/src/layout/Header.tsx b/src/layout/Header.tsx index 25c395dd..71a1283a 100644 --- a/src/layout/Header.tsx +++ b/src/layout/Header.tsx @@ -105,7 +105,8 @@ export const UserDropdown = function () { const { data: user } = useQuery({ queryKey: ['QueriesGetUser'], - queryFn: () => RESTApi.fetchUser() + queryFn: () => RESTApi.fetchUser(), + throwOnError: false }); const { refetch: refetchLogout, isSuccess: isLogoutSuccess } = useQuery({ diff --git a/src/pages/shared/Errors/Console/index.tsx b/src/pages/shared/Errors/Console/index.tsx index 2222d383..21e665e5 100644 --- a/src/pages/shared/Errors/Console/index.tsx +++ b/src/pages/shared/Errors/Console/index.tsx @@ -43,7 +43,7 @@ const ErrorConsole: FC = function ({ error, resetErrorBoundar - {error.stack} + {error.stack || ''} diff --git a/src/pages/shared/Errors/__tests__/ErrorConsole.tsx b/src/pages/shared/Errors/__tests__/ErrorConsole.spec.tsx similarity index 100% rename from src/pages/shared/Errors/__tests__/ErrorConsole.tsx rename to src/pages/shared/Errors/__tests__/ErrorConsole.spec.tsx