[ios][config] resolve correct null values

This commit is contained in:
Salakar 2018-07-21 20:31:32 +01:00
parent 26338d8d62
commit f17225d101
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ RCT_EXPORT_METHOD(fetch:
if (error) { if (error) {
reject(convertFIRRemoteConfigFetchStatusToNSString(status), convertFIRRemoteConfigFetchStatusToNSStringDescription(status), error); reject(convertFIRRemoteConfigFetchStatusToNSString(status), convertFIRRemoteConfigFetchStatusToNSStringDescription(status), error);
} else { } else {
resolve(nil); resolve([NSNull null]);
} }
}]; }];
} }
@ -75,7 +75,7 @@ RCT_EXPORT_METHOD(fetchWithExpirationDuration:
if (error) { if (error) {
reject(convertFIRRemoteConfigFetchStatusToNSString(status), convertFIRRemoteConfigFetchStatusToNSStringDescription(status), error); reject(convertFIRRemoteConfigFetchStatusToNSString(status), convertFIRRemoteConfigFetchStatusToNSStringDescription(status), error);
} else { } else {
resolve(nil); resolve([NSNull null]);
} }
}]; }];
} }