Skip to content

Commit

Permalink
fix(remote-config, ios): correct number comparison / fix fetch thrott…
Browse files Browse the repository at this point in the history
…ling (#4664)
  • Loading branch information
Danchoys committed Dec 9, 2020
1 parent a8d0a5e commit 5a68a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remote-config/ios/RNFBConfig/RNFBConfigModule.m
Expand Up @@ -119,7 +119,7 @@ + (BOOL)requiresMainQueueSetup {
}
};

if (expirationDuration == @(-1)) {
if (expirationDuration.integerValue == -1) {
[[FIRRemoteConfig remoteConfigWithApp:firebaseApp] fetchWithCompletionHandler:completionHandler];
} else {
[[FIRRemoteConfig remoteConfigWithApp:firebaseApp] fetchWithExpirationDuration:expirationDuration.doubleValue completionHandler:completionHandler];
Expand Down

1 comment on commit 5a68a8a

@vercel
Copy link

@vercel vercel bot commented on 5a68a8a Dec 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.