Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed
- Using tha same Price varaible to compare High and Low price to Fix escenarios when sportPrice is not available

## [0.16.1] - 2025-12-08

### Fixed
Expand Down
3 changes: 1 addition & 2 deletions react/Product.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { jsonLdScriptProps } from 'react-schemaorg'
import useAppSettings from './hooks/useAppSettings'
import { getBaseUrl } from './modules/baseUrl'

const getSpotPrice = path(['commertialOffer', 'spotPrice'])
const getPrice = path(['commertialOffer', 'Price'])
const getTax = path(['commertialOffer', 'Tax'])
const getAvailableQuantity = pathOr(0, ['commertialOffer', 'AvailableQuantity'])
Expand Down Expand Up @@ -167,7 +166,7 @@ const composeAggregateOffer = (

const aggregateOffer = {
'@type': 'AggregateOffer',
lowPrice: getFinalPrice(low, getSpotPrice, { decimals, pricesWithTax }),
lowPrice: getFinalPrice(low, getPrice, { decimals, pricesWithTax }),
highPrice: getFinalPrice(high, getPrice, { decimals, pricesWithTax }),
priceCurrency: currency,
offers: offersList,
Expand Down