optionsSelections takes an array of options objs (#364)

* optionsSelections takes an array of options objs

* use options array to match API expectations

Co-authored-by: Ryan Ford <ryanford@users.noreply.github.com>
This commit is contained in:
ryanford 2021-08-02 06:46:36 +08:00 committed by GitHub
parent 1375d88171
commit e8b577b83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ type BCCartItemBody = {
product_id: number
variant_id: number
quantity?: number
option_selections?: OptionSelections
option_selections?: OptionSelections[]
}
export const parseWishlistItem = (

View File

@ -40,7 +40,7 @@ export type OptionSelections = {
export type CartItemBody = Core.CartItemBody & {
productId: string // The product id is always required for BC
optionSelections?: OptionSelections
optionSelections?: OptionSelections[]
}
export type CartTypes = {