Skip to content

Commit f1cd147

Browse files
authored
Merge pull request #65 from Soomgo-Mobile/v10-sync-to-v9
fix(Runtime): null Type error when up to date
2 parents 7e20f9d + 66eaa31 commit f1cd147

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
@@ -472,7 +472,7 @@ async function syncInternal(options = {}, syncStatusChangeCallback, downloadProg
472472

473473
syncStatusChangeCallback(CodePush.SyncStatus.CHECKING_FOR_UPDATE);
474474
const remotePackage = await checkForUpdate(handleBinaryVersionMismatchCallback);
475-
remotePackageLabel = remotePackage.label;
475+
remotePackageLabel = remotePackage?.label;
476476

477477
const doDownloadAndInstall = async () => {
478478
syncStatusChangeCallback(CodePush.SyncStatus.DOWNLOADING_PACKAGE);

0 commit comments

Comments
 (0)