diff --git a/apps/scandic-web/server/routers/hotels/output.ts b/apps/scandic-web/server/routers/hotels/output.ts index 6c4d74265..893f5a56e 100644 --- a/apps/scandic-web/server/routers/hotels/output.ts +++ b/apps/scandic-web/server/routers/hotels/output.ts @@ -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, diff --git a/apps/scandic-web/types/components/ancillaryCard.ts b/apps/scandic-web/types/components/ancillaryCard.ts index 3b326443b..b1b9b3177 100644 --- a/apps/scandic-web/types/components/ancillaryCard.ts +++ b/apps/scandic-web/types/components/ancillaryCard.ts @@ -1,7 +1,7 @@ export interface AncillaryCardProps { ancillary: { title: string - imageUrl: string + imageUrl?: string imageOpacity?: number price: { total: number