Skip to content

Commit 00be600

Browse files
fix: correct quantity value conversion (#82)
1 parent 6d4af91 commit 00be600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNMParticle/RNMParticle.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ + (MPProduct *)MPProduct:(id)json {
487487
product.sku = json[@"sku"];
488488
product.variant = json[@"variant"];
489489
product.position = [json[@"position"] intValue];
490-
product.quantity = json[@"quantity"];
490+
product.quantity = @([json[@"quantity"] intValue]);
491491
NSDictionary *jsonAttributes = json[@"customAttributes"];
492492
for (NSString *key in jsonAttributes) {
493493
NSString *value = jsonAttributes[key];

0 commit comments

Comments
 (0)