diff --git a/src/components/Error/index.tsx b/src/components/Error/index.tsx index 3c920fddfa35..1c8f59c98c15 100644 --- a/src/components/Error/index.tsx +++ b/src/components/Error/index.tsx @@ -23,9 +23,10 @@ const ErrorCapture = memo(({ reset, error }) => { sentryCaptureException(error); }, [error]); - const handleReset = () => { - window.location.reload(); - }; + const handleReset = () => { + reset(); // Call the provided reset function + window.location.reload(); // Reload the page + }; return (