From c07f89bd79bd4dc1da5d29e027a66f59122d2fbc Mon Sep 17 00:00:00 2001 From: Hugo Laguna <148252957+hugo-expe@users.noreply.github.com> Date: Fri, 9 Jan 2026 14:02:03 +0100 Subject: [PATCH 1/2] Fix: compare same Price variables between range high/low --- react/Product.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/react/Product.js b/react/Product.js index eba2a98..c7ecbd4 100644 --- a/react/Product.js +++ b/react/Product.js @@ -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']) @@ -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, From 4f064c6b666d3df33bc1e5fe416a7c1badfe76d9 Mon Sep 17 00:00:00 2001 From: Hugo Laguna <148252957+hugo-expe@users.noreply.github.com> Date: Fri, 9 Jan 2026 14:03:33 +0100 Subject: [PATCH 2/2] Changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5291be..2edd8f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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