Skip to content

Commit

Permalink
renamed caughtError to catchError for BaseErrorBoundary component
Browse files Browse the repository at this point in the history
  • Loading branch information
AGarciaNY committed Sep 17, 2023
1 parent d64a433 commit 982aac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ErrorBoundary/BaseErrorBoundary.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const defaultProps = {
* @return {React.Component}
*/
function BaseErrorBoundary({logError, errorMessage, children}) {
const caughtError = (error, errorInfo) => {
const catchError = (error, errorInfo) => {
logError(errorMessage, error, JSON.stringify(errorInfo));
// We hide the splash screen since the error might happened during app init
BootSplash.hide();
Expand All @@ -35,7 +35,7 @@ function BaseErrorBoundary({logError, errorMessage, children}) {
return (
<ErrorBoundary
fallback={<GenericErrorPage />}
onError={caughtError}
onError={catchError}
>
{children}
</ErrorBoundary>
Expand Down

0 comments on commit 982aac3

Please sign in to comment.