diff --git a/CodePush.js b/CodePush.js index f2aac01..288c254 100644 --- a/CodePush.js +++ b/CodePush.js @@ -173,7 +173,7 @@ const notifyApplicationReady = (() => { async function notifyApplicationReadyInternal() { await NativeCodePush.notifyApplicationReady(); const statusReport = await NativeCodePush.getNewStatusReport(); - tryReportStatus(statusReport); // Don't wait for this to complete. + statusReport && tryReportStatus(statusReport); // Don't wait for this to complete. return statusReport; } diff --git a/typings/react-native-code-push.d.ts b/typings/react-native-code-push.d.ts index 7867921..cf3bacc 100644 --- a/typings/react-native-code-push.d.ts +++ b/typings/react-native-code-push.d.ts @@ -243,7 +243,7 @@ declare namespace CodePush { /** * Notifies the CodePush runtime that an installed update is considered successful. */ - function notifyAppReady(): Promise; + function notifyAppReady(): Promise; /** * Allow CodePush to restart the app.