Skip to content

Commit

Permalink
remove the check in error boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Nov 10, 2022
1 parent 9f5e58a commit 7bc444c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/ErrorBoundary/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@ import crashlytics from '@react-native-firebase/crashlytics';

import BaseErrorBoundary from './BaseErrorBoundary';
import Log from '../../libs/Log';
import CONFIG from '../../CONFIG';

BaseErrorBoundary.defaultProps.logError = (errorMessage, error, errorInfo) => {
// Do not log JS crashes to crashlytics if we are on dev or local release builds.
// They should only be sent on official staging or production versions of the app.
if (!CONFIG.SEND_CRASH_REPORTS) {
return;
}

// Log the error to the server
Log.alert(`${errorMessage} - ${error.message}`, {errorInfo}, false);

Expand Down

0 comments on commit 7bc444c

Please sign in to comment.