Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 8c432e4

Browse files
committed
Bug fix for #379 where status report can be undefined on notifyApplicationReady
I introduced a crash on subsequent launches after an update is applied, where `getNewStatusReport()` returns nothing. This fixes it!
1 parent 4901346 commit 8c432e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodePush.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const notifyApplicationReady = (() => {
173173
async function notifyApplicationReadyInternal() {
174174
await NativeCodePush.notifyApplicationReady();
175175
const statusReport = await NativeCodePush.getNewStatusReport();
176-
tryReportStatus(statusReport); // Don't wait for this to complete.
176+
statusReport && tryReportStatus(statusReport); // Don't wait for this to complete.
177177

178178
return statusReport;
179179
}

0 commit comments

Comments
 (0)