From d75db7df37841ebafc45f3a2bdb5b612e8c7b0b2 Mon Sep 17 00:00:00 2001 From: Ben Gourley Date: Wed, 6 May 2020 17:23:15 +0100 Subject: [PATCH] fix(plugin-react): Add missing return statement --- packages/plugin-react/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-react/src/index.js b/packages/plugin-react/src/index.js index d9b01194f9..4f7c50f485 100644 --- a/packages/plugin-react/src/index.js +++ b/packages/plugin-react/src/index.js @@ -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 }