From 844607b217f28446e4e3ed74b635279d58fb7948 Mon Sep 17 00:00:00 2001 From: Marite Guerrieri Date: Thu, 10 Aug 2023 12:44:22 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20r=20Adapt=20to=20new=20dat?= =?UTF-8?q?a=20structure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: javikalsan --- src/containers/Contract/Review.jsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/containers/Contract/Review.jsx b/src/containers/Contract/Review.jsx index 1a1262a7..ddbc993e 100644 --- a/src/containers/Contract/Review.jsx +++ b/src/containers/Contract/Review.jsx @@ -58,7 +58,7 @@ const Review = (props) => { city_id: values.supply_point.city.id }) .then((response) => { - const tariffPrices = response?.data + const tariffPrices = response?.data['current'] setPrices(tariffPrices) setLoading(false) }) @@ -181,7 +181,7 @@ const Review = (props) => { } }}> - {`${concept[key]?.value} ${concept[key]?.uom}`} + {`${concept[key]?.value} ${concept[key]?.unit}`} ) @@ -207,7 +207,7 @@ const Review = (props) => { {concept ? ( keys.map((key, index) => ( - {`${labels[index]}: ${concept[key]?.value} ${concept[key]?.uom}`} + {`${labels[index]}: ${concept[key]?.value} ${concept[key]?.unit}`} )) ) : ( @@ -495,28 +495,28 @@ const Review = (props) => { } + value={} multipleValues={true} /> } + value={} multipleValues={true} /> } + value={} multipleValues={true} /> } + value={} multipleValues={true} /> @@ -524,7 +524,7 @@ const Review = (props) => {