From 1a748f5ed6c291888494addefa64adac38df2901 Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Thu, 3 Dec 2015 03:26:08 -0800 Subject: [PATCH] Fix profile build Reviewed By: jspahrsummers Differential Revision: D2717604 fb-gh-sync-id: 9817bf743de0d6b5bd22f12ae50a8e1f99c1c0c3 --- React/Base/RCTConvert.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/Base/RCTConvert.m b/React/Base/RCTConvert.m index f5f603343..b2c033b38 100644 --- a/React/Base/RCTConvert.m +++ b/React/Base/RCTConvert.m @@ -172,7 +172,7 @@ NSNumber *RCTConvertEnumValue(const char *typeName, NSDictionary *mapping, NSNum } if ([json isKindOfClass:[NSNumber class]]) { NSArray *allValues = mapping.allValues; - if ([mapping.allValues containsObject:json] || [json isEqual:defaultValue]) { + if ([allValues containsObject:json] || [json isEqual:defaultValue]) { return json; } RCTLogError(@"Invalid %s '%@'. should be one of: %@", typeName, json, allValues);