diff --git a/src/core/Error/Error.tsx b/src/core/Error/Error.tsx index 9aedf2821..fecfafc45 100644 --- a/src/core/Error/Error.tsx +++ b/src/core/Error/Error.tsx @@ -9,15 +9,9 @@ import styles from './styles.less'; const Error = () => { const { t } = useTranslation(); - const [dataCleared, setDataCleared] = React.useState(false); - - const reload = React.useCallback(() => { - window.location.reload(); - }, []); - const clearData = React.useCallback(() => { window.localStorage.clear(); - setDataCleared(true); + window.location.reload(); }, []); return ( @@ -31,12 +25,7 @@ const Error = () => { { t('GENERIC_ERROR_MESSAGE') }