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,
|
id: item.id,
|
||||||
title: item.title,
|
title: item.title,
|
||||||
description: item.descriptions.html,
|
description: item.descriptions.html,
|
||||||
imageUrl: item.images[0]?.imageSizes.small,
|
imageUrl: item.images[0]?.imageSizes.small || undefined,
|
||||||
price: {
|
price: {
|
||||||
total: item.variants.ancillary.price.totalPrice,
|
total: item.variants.ancillary.price.totalPrice,
|
||||||
currency: item.variants.ancillary.price.currency,
|
currency: item.variants.ancillary.price.currency,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
export interface AncillaryCardProps {
|
export interface AncillaryCardProps {
|
||||||
ancillary: {
|
ancillary: {
|
||||||
title: string
|
title: string
|
||||||
imageUrl: string
|
imageUrl?: string
|
||||||
imageOpacity?: number
|
imageOpacity?: number
|
||||||
price: {
|
price: {
|
||||||
total: number
|
total: number
|
||||||
|
|||||||
Reference in New Issue
Block a user