[ios][config] Always resolve activated status
This commit is contained in:
parent
b70eb274ee
commit
69872fa5b9
|
@ -109,11 +109,7 @@ RCT_EXPORT_METHOD(activateFetched:(RCTPromiseResolveBlock)resolve
|
||||||
rejecter:(RCTPromiseRejectBlock)reject)
|
rejecter:(RCTPromiseRejectBlock)reject)
|
||||||
{
|
{
|
||||||
BOOL status = [self.remoteConfig activateFetched];
|
BOOL status = [self.remoteConfig activateFetched];
|
||||||
if (status) {
|
resolve(@(status));
|
||||||
resolve(@(status));
|
|
||||||
} else {
|
|
||||||
reject(@"activate_failed", @"Did not activate remote config", nil);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RCT_EXPORT_METHOD(configValueForKey:(NSString *)key
|
RCT_EXPORT_METHOD(configValueForKey:(NSString *)key
|
||||||
|
|
Loading…
Reference in New Issue