Skip to content

Commit

Permalink
fix(plugin-react): Add missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
bengourley committed May 6, 2020
1 parent f9d34e4 commit d75db7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-react/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ then pass in React when available to construct your error boundary
}
BugsnagPluginReactLazyInitializer.createErrorBoundary = (React) => {
if (!React) throw new Error('@bugsnag/plugin-react reference to `React` was undefined')
createClass(React, client)
return createClass(React, client)
}
return BugsnagPluginReactLazyInitializer
}
Expand Down

0 comments on commit d75db7d

Please sign in to comment.