From 2f09277e30e6abf3f6f510560f952f157dfaefb2 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 16 Jun 2026 08:24:57 +0200 Subject: [PATCH] refactor(core): simplify error page ux --- src/core/Error/Error.tsx | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) 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') }
- -