Skip to content

Commit

Permalink
fix: Fix setVariant on Product
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonStalnaker committed Jun 3, 2024
1 parent 36a7d4a commit 735e236
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,11 @@ private static Product ConvertProduct(ReadableMap map) {
builder.quantity(quantity);
}

if (map.hasKey("variant")) {
String variant = map.getString("variant");
builder.variant(variant);
}

return builder.build();
}

Expand Down

0 comments on commit 735e236

Please sign in to comment.