Fix profile build

Reviewed By: jspahrsummers

Differential Revision: D2717604

fb-gh-sync-id: 9817bf743de0d6b5bd22f12ae50a8e1f99c1c0c3
This commit is contained in:
Pieter De Baets 2015-12-03 03:26:08 -08:00 committed by facebook-github-bot-9
parent 8e55858397
commit 1a748f5ed6
1 changed files with 1 additions and 1 deletions

View File

@ -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);