Doh, should of course be AND, not OR

This commit is contained in:
Niklas Saers 2018-09-20 13:38:39 +02:00
parent c37507768c
commit 865db71179

View File

@ -436,7 +436,7 @@ static int const RCTVideoUnset = -1;
bool isAsset = [RCTConvert BOOL:[source objectForKey:@"isAsset"]]; bool isAsset = [RCTConvert BOOL:[source objectForKey:@"isAsset"]];
NSString *uri = [source objectForKey:@"uri"]; NSString *uri = [source objectForKey:@"uri"];
NSString *type = [source objectForKey:@"type"]; NSString *type = [source objectForKey:@"type"];
if([uri isEqualToString:@""] || [type isEqualToString:@""]) { if([uri isEqualToString:@""] && [type isEqualToString:@""]) {
DebugLog(@"Could not find video URL in source '%@'", source); DebugLog(@"Could not find video URL in source '%@'", source);
return; return;
} }