Skip to content

Commit 834f46c

Browse files
fix: Fix setVariant on Product (#207)
1 parent 36a7d4a commit 834f46c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/src/main/java/com/mparticle/react/MParticleModule.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,11 @@ private static Product ConvertProduct(ReadableMap map) {
684684
builder.quantity(quantity);
685685
}
686686

687+
if (map.hasKey("variant")) {
688+
String variant = map.getString("variant");
689+
builder.variant(variant);
690+
}
691+
687692
return builder.build();
688693
}
689694

0 commit comments

Comments
 (0)