diff options
Diffstat (limited to 'src/components/ErrorBoundary.tsx')
-rw-r--r-- | src/components/ErrorBoundary.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ErrorBoundary.tsx b/src/components/ErrorBoundary.tsx index 21a3155..83f35e6 100644 --- a/src/components/ErrorBoundary.tsx +++ b/src/components/ErrorBoundary.tsx @@ -15,7 +15,7 @@ const NO_ERROR = {}; export default class ErrorBoundary extends React.Component<React.PropsWithChildren<Props>> { static wrap<T = any>(Component: React.ComponentType<T>): (props: T) => React.ReactElement { - return (props) => ( + return props => ( <ErrorBoundary> <Component {...props as any/* I hate react typings ??? */} /> </ErrorBoundary> |