diff --git a/ios/ReactNativeBlobUtilRequest.mm b/ios/ReactNativeBlobUtilRequest.mm index ae6dd103..f35c1a28 100644 --- a/ios/ReactNativeBlobUtilRequest.mm +++ b/ios/ReactNativeBlobUtilRequest.mm @@ -124,7 +124,7 @@ - (void) sendRequest:(__weak NSDictionary * _Nullable )options defaultConfigObject.timeoutIntervalForRequest = timeout/1000; } - if([options valueForKey:CONFIG_WIFI_ONLY] != nil && ![options[CONFIG_WIFI_ONLY] boolValue]){ + if([options valueForKey:CONFIG_WIFI_ONLY] != nil && [options[CONFIG_WIFI_ONLY] boolValue]){ [defaultConfigObject setAllowsCellularAccess:NO]; }