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

Commit 6ddc4f0

Browse files
committed
Fixing checkForUpdate conditional
1 parent 8ee42b7 commit 6ddc4f0

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
@@ -58,7 +58,7 @@ async function checkForUpdate(deploymentKey = null) {
5858
* client app is resilient to a potential issue with the update check.
5959
*/
6060
if (!update || update.updateAppVersion || (update.packageHash === localPackage.packageHash)) {
61-
if (update.updateAppVersion) {
61+
if (update && update.updateAppVersion) {
6262
log("An update is available but it is targeting a newer binary version than you are currently running.");
6363
}
6464

0 commit comments

Comments
 (0)