Skip to content

Commit 52a3f8a

Browse files
author
Nahuel Alan Grimaudo
committed
Since NSUInteger is a primitive type, there's no concept of "null"
1 parent eb9eb02 commit 52a3f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mParticle-Google-Analytics-Firebase-GA4/MPKitFirebaseGA4Analytics.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ - (NSMutableArray *)getParametersForProducts:(id)products {
536536
if (product.price) {
537537
[productParameters setObject:product.price forKey:kFIRParameterPrice];
538538
}
539-
if (product.position != nil && [product.position isKindOfClass:[NSNumber class]]) {
539+
if (product.position >= 0) {
540540
id indexParameter = @(product.position);
541541
[productParameters setObject:indexParameter forKey:kFIRParameterIndex];
542542
}

0 commit comments

Comments
 (0)