Skip to content

Commit 27e98a7

Browse files
authored
Merge pull request Soomgo-Mobile#64 from gilmujjang/fix-syncStatus-error
fix(Runtime): null Type error when up to date
2 parents 81c060a + 187e0da commit 27e98a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodePush.js

+1-1
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)