[ios][config] Always resolve activated status

This commit is contained in:
Elliot Hesp 2017-05-23 11:51:16 +01:00
parent b70eb274ee
commit 69872fa5b9
1 changed files with 1 additions and 5 deletions

View File

@ -109,11 +109,7 @@ RCT_EXPORT_METHOD(activateFetched:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock)reject)
{
BOOL status = [self.remoteConfig activateFetched];
if (status) {
resolve(@(status));
} else {
reject(@"activate_failed", @"Did not activate remote config", nil);
}
resolve(@(status));
}
RCT_EXPORT_METHOD(configValueForKey:(NSString *)key