Update normalize.ts

add missing options property to `normalizeLineItem`
This commit is contained in:
pfcodes 2021-09-08 11:10:17 -07:00 committed by GitHub
parent 61d075daf1
commit a362fea85f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,6 +119,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,