Skip to content

Commit

Permalink
Fix run-time error unregistering (facebook#3474)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored and Pavel Zhytko committed Jul 10, 2018
1 parent 446fccf commit 123e91b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-error-overlay/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function startReportingRuntimeErrors(options: RuntimeReportingOptions) {
);
}
currentRuntimeErrorOptions = options;
listenToRuntimeErrors(errorRecord => {
stopListeningToRuntimeErrors = listenToRuntimeErrors(errorRecord => {
try {
if (typeof options.onError === 'function') {
options.onError.call(null);
Expand Down

0 comments on commit 123e91b

Please sign in to comment.