diff --git a/src/api.js b/src/api.js index b4e3a186..111b2aaf 100644 --- a/src/api.js +++ b/src/api.js @@ -19,6 +19,7 @@ axios.interceptors.response.use( }, (error) => { if (error?.response?.status === 401) { + if (window.location.pathname.includes('/login')) return Promise.reject(error); logoutUser(); window.location.replace('/login'); return Promise.reject(error); diff --git a/src/components/Login/TermsOfService.jsx b/src/components/Login/TermsOfService.jsx deleted file mode 100644 index 6046332f..00000000 --- a/src/components/Login/TermsOfService.jsx +++ /dev/null @@ -1,37 +0,0 @@ -import React from 'react'; - -import { makeStyles } from '@mui/styles'; -import { Stack, Typography } from '@mui/material'; - -const useStyles = makeStyles(() => ({ - subtext: { - color: '#52637A', - fontSize: '0.8125rem', - fontWeight: '400', - lineHeight: '154%', - letterSpacing: '0.025rem', - marginBottom: '0' - }, - text: { - color: '#0F2139', - fontSize: '0.8125rem', - lineHeight: '154%', - fontWeight: '600', - letterSpacing: '0.025rem' - } -})); - -export default function TermsOfService(props) { - const classes = useStyles(); - return ( - - - By using zot UI, you agree to the Terms of Service. For more information about our privacy practices, see - zot's Privacy Policy. - - - Privacy Policy | Terms of Service - - - ); -}