Fixed unused var error
All checks were successful
checks-impure / test (pull_request) Successful in 26s
checks / test (pull_request) Successful in 2m55s

This commit is contained in:
2024-01-16 16:19:44 +01:00
parent 93084c360b
commit 92e584cc5c

View File

@@ -16,7 +16,7 @@ class ErrorBoundary extends React.Component<Props, State> {
this.state = { hasError: false }; this.state = { hasError: false };
} }
static getDerivedStateFromError(error: Error): State { static getDerivedStateFromError(error: Error): State {
// eslint-disable-line console.error(error);
// Update state so the next render will show the fallback UI // Update state so the next render will show the fallback UI
return { hasError: true }; return { hasError: true };
} }