From bb22d5d8beeecc60581b6f9381ca201fe28a7060 Mon Sep 17 00:00:00 2001 From: Ochieng Paul Date: Wed, 18 Dec 2024 22:54:56 +0300 Subject: [PATCH] fix AQI details and also tooltip "Invalid error message" --- platform/src/common/components/AQNumberCard/index.jsx | 4 ++-- platform/src/common/components/Charts/MoreInsightsChart.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/src/common/components/AQNumberCard/index.jsx b/platform/src/common/components/AQNumberCard/index.jsx index 28456cdde8..5ca07fad30 100644 --- a/platform/src/common/components/AQNumberCard/index.jsx +++ b/platform/src/common/components/AQNumberCard/index.jsx @@ -45,9 +45,9 @@ const generateTrendData = (averages) => { 'No significant change in air quality compared to the previous week.'; if (isIncreasing) { - trendTooltip = `The Air quality has increased by ${percentageDifference}% compared to the previous week, indicating deteriorating air quality.`; + trendTooltip = `The air quality has increased by ${percentageDifference}% compared to the previous week, indicating deteriorating air quality.`; } else if (averages.percentageDifference < 0) { - trendTooltip = `The Air quality has decreased by ${percentageDifference}% compared to the previous week, indicating improving air quality.`; + trendTooltip = `The air quality has decreased by ${percentageDifference}% compared to the previous week, indicating improving air quality.`; } return { diff --git a/platform/src/common/components/Charts/MoreInsightsChart.jsx b/platform/src/common/components/Charts/MoreInsightsChart.jsx index b867d8411e..495bfeb43a 100644 --- a/platform/src/common/components/Charts/MoreInsightsChart.jsx +++ b/platform/src/common/components/Charts/MoreInsightsChart.jsx @@ -313,7 +313,7 @@ const MoreInsightsChart = ({ }