Skip to content

Commit

Permalink
fix AQI details and also tooltip "Invalid error message"
Browse files Browse the repository at this point in the history
  • Loading branch information
OchiengPaul442 committed Dec 18, 2024
1 parent 1dd2890 commit bb22d5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions platform/src/common/components/AQNumberCard/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ const MoreInsightsChart = ({
<Tooltip
content={
<CustomGraphTooltip
pollutantType={pollutantType}
pollutionType={pollutantType}
activeIndex={activeIndex}
/>
}
Expand Down

0 comments on commit bb22d5d

Please sign in to comment.