We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30818a1 commit c0f8835Copy full SHA for c0f8835
CodePush.js
@@ -50,7 +50,7 @@ function checkForUpdate(deploymentKey = null) {
50
* to send the app version to the server, since we are interested
51
* in any updates for current app store version, regardless of hash.
52
*/
53
- if (localPackage && semver.compare(localPackage.appVersion, config.appVersion) === 0) {
+ if (localPackage && localPackage.appVersion && semver.compare(localPackage.appVersion, config.appVersion) === 0) {
54
queryPackage = localPackage;
55
}
56
0 commit comments