diff --git a/CodePush.m b/CodePush.m index 1500f48..87e44ea 100644 --- a/CodePush.m +++ b/CodePush.m @@ -507,7 +507,7 @@ RCT_EXPORT_METHOD(notifyApplicationReady:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { // We only mark a pending update as succeeded only if it has been booted up - // successfully, during which `didUpdate` is set to true. + // successfully, during which `_isFirstRunAfterUpdate` is set to true. if (_isFirstRunAfterUpdate) { [CodePush removePendingUpdate]; } diff --git a/CodePushPackage.m b/CodePushPackage.m index ae0b973..7e6328f 100644 --- a/CodePushPackage.m +++ b/CodePushPackage.m @@ -459,7 +459,7 @@ NSString * const UnzippedFolderName = @"unzipped"; return; } - if (!removePendingUpdate) { + if (removePendingUpdate) { NSString *currentPackageFolderPath = [self getCurrentPackageFolderPath:error]; if (!*error && currentPackageFolderPath) { // Error in deleting pending package will not cause the entire operation to fail.