We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ef79a4 commit 8a28484Copy full SHA for 8a28484
1 file changed
src/domain/event/utils.ts
@@ -608,12 +608,16 @@ export const getEventBasePayload = (
608
isFree: false,
609
...(featureFlagUtils.isFeatureEnabled('WEB_STORE_INTEGRATION')
610
? {
611
- offerPriceGroups: offer.offerPriceGroups.map((pg) => ({
612
- id: pg.id ?? undefined,
613
- price: pg.price,
614
- priceGroup: Number(pg.priceGroup),
615
- vatPercentage: offersVatPercentage,
616
- })),
+ offerPriceGroups: offer.offerPriceGroups
+ .filter(
+ (pg) => Boolean(pg.price) && Boolean(offersVatPercentage)
+ )
+ .map((pg) => ({
+ id: pg.id ?? undefined,
617
+ price: pg.price,
618
+ priceGroup: Number(pg.priceGroup),
619
+ vatPercentage: offersVatPercentage,
620
+ })),
621
}
622
: /* istanbul ignore next */
623
{}),
0 commit comments