diff --git a/frontend/src/component/providers/SWRProvider/SWRProvider.tsx b/frontend/src/component/providers/SWRProvider/SWRProvider.tsx index 048498eaa6..51541c51c6 100644 --- a/frontend/src/component/providers/SWRProvider/SWRProvider.tsx +++ b/frontend/src/component/providers/SWRProvider/SWRProvider.tsx @@ -2,6 +2,7 @@ import { USER_CACHE_KEY } from '../../../hooks/api/getters/useUser/useUser'; import { mutate, SWRConfig, useSWRConfig } from 'swr'; import { useHistory } from 'react-router'; import useToast from '../../../hooks/useToast'; +import { formatApiPath } from '../../../utils/format-path'; interface ISWRProviderProps { setShowLoader: React.Dispatch>; @@ -30,9 +31,9 @@ const SWRProvider: React.FC = ({ } if ( - path === '/login' || - path === '/new-user' || - path === '/reset-password' + path === formatApiPath('login') || + path === formatApiPath('new-user') || + path === formatApiPath('reset-password') ) { return; }