Skip to content

Commit

Permalink
Display offer if no available product
Browse files Browse the repository at this point in the history
  • Loading branch information
jrlarano committed Jul 6, 2024
1 parent 3025ce4 commit 4fc604e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/kits/core-ui/components/common/offer-overview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,18 @@ const OfferOverview = ({

const products = transformProducts(offer, dirtyProducts);

offer.products = products;
} else {
const products = transformProducts(offer, [
{
id: offer.id,
title: offer.heading,
description: null,
image: offer.images?.thumb || offer.images?.zoom,
price: offer.pricing.price,
link: offer.links.webshop
}
]);
offer.products = products;
}

Expand Down

0 comments on commit 4fc604e

Please sign in to comment.