diff --git a/Libraries/Network/RCTNetworking.m b/Libraries/Network/RCTNetworking.m index 5e3081343..47cbc74d2 100644 --- a/Libraries/Network/RCTNetworking.m +++ b/Libraries/Network/RCTNetworking.m @@ -411,7 +411,7 @@ RCT_EXPORT_MODULE() task.uploadProgressBlock = uploadProgressBlock; if (task.requestID) { - if (_tasksByRequestID) { + if (!_tasksByRequestID) { _tasksByRequestID = [NSMutableDictionary new]; } _tasksByRequestID[task.requestID] = task;