Update normalize.ts (#475)

add missing options property to `normalizeLineItem`

Co-authored-by: Gonzalo Pozzo <gonzalo.pozzo4@gmail.com>
This commit is contained in:
pfcodes
2021-11-19 08:01:31 -08:00
committed by GitHub
parent d1e730d0b9
commit 3afe367c41

View File

@@ -122,6 +122,7 @@ function normalizeLineItem(item: any): LineItem {
price: item.sale_price,
listPrice: item.list_price,
},
options: item.options,
path: item.url.split('/')[3],
discounts: item.discounts.map((discount: any) => ({
value: discount.discounted_amount,