Merged in chore/update-ancillary-imageurl-typing (pull request #2182)
chore: update ancillary imageurl typing to reflect that the image url may be undefined Approved-by: Niclas Edenvin
This commit is contained in:
@@ -523,7 +523,7 @@ export const ancillaryPackagesSchema = z
|
||||
id: item.id,
|
||||
title: item.title,
|
||||
description: item.descriptions.html,
|
||||
imageUrl: item.images[0]?.imageSizes.small,
|
||||
imageUrl: item.images[0]?.imageSizes.small || undefined,
|
||||
price: {
|
||||
total: item.variants.ancillary.price.totalPrice,
|
||||
currency: item.variants.ancillary.price.currency,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export interface AncillaryCardProps {
|
||||
ancillary: {
|
||||
title: string
|
||||
imageUrl: string
|
||||
imageUrl?: string
|
||||
imageOpacity?: number
|
||||
price: {
|
||||
total: number
|
||||
|
||||
Reference in New Issue
Block a user