Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
bentwnghk authored Dec 27, 2024
1 parent 5f79a69 commit 605fa1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Error/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ const ErrorCapture = memo<ErrorCaptureProps>(({ 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 (
<Flexbox align={'center'} justify={'center'} style={{ minHeight: '100%', width: '100%' }}>
Expand Down

0 comments on commit 605fa1b

Please sign in to comment.