Skip to content

Commit

Permalink
fix variant_name is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Sep 11, 2023
1 parent cb0acb3 commit df3ce5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vnda/hooks/useCart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const itemToAnalyticsItem = (
item_id: `${item.id}_${item.variant_sku}`,
item_name: item.product_name,
discount: item.price - item.variant_price,
item_variant: item.variant_name.slice(item.product_name.length).trim(),
item_variant: item.variant_name?.slice(item.product_name.length).trim(),
// TODO: check
price: item.price,
// TODO
Expand Down

0 comments on commit df3ce5d

Please sign in to comment.