From 399d7d88469bf281ed1e2ca3b32555fc91b4f693 Mon Sep 17 00:00:00 2001 From: Eric Boucher Date: Thu, 28 Nov 2024 11:13:59 +0100 Subject: [PATCH] Use ppt unit for hui (#1062) * Use ppt unit for hui * Update index.test.tsx.snap --- .../MultipleSensorsCharts/__snapshots__/index.test.tsx.snap | 6 +++--- .../website/src/common/SiteDetails/WaterSampling/utils.ts | 2 +- packages/website/src/constants/chartConfigs/huiConfig.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/website/src/common/Chart/MultipleSensorsCharts/__snapshots__/index.test.tsx.snap b/packages/website/src/common/Chart/MultipleSensorsCharts/__snapshots__/index.test.tsx.snap index 038c775d0..da738e124 100644 --- a/packages/website/src/common/Chart/MultipleSensorsCharts/__snapshots__/index.test.tsx.snap +++ b/packages/website/src/common/Chart/MultipleSensorsCharts/__snapshots__/index.test.tsx.snap @@ -794,7 +794,7 @@ exports[`MultipleSensorsCharts should render with given state from Redux store 1 > 36.1 - psu + ppt
34.9 - psu + ppt
33.8 - psu + ppt
diff --git a/packages/website/src/common/SiteDetails/WaterSampling/utils.ts b/packages/website/src/common/SiteDetails/WaterSampling/utils.ts index 185e39d33..7b7684cf5 100644 --- a/packages/website/src/common/SiteDetails/WaterSampling/utils.ts +++ b/packages/website/src/common/SiteDetails/WaterSampling/utils.ts @@ -123,7 +123,7 @@ export function metricFields( { label: 'Salinity', value: `${formatNumber(data?.salinity, 1)}`, - unit: 'psu', + unit: source === 'hui' ? 'ppt' : 'psu', xs: 6, }, ]; diff --git a/packages/website/src/constants/chartConfigs/huiConfig.ts b/packages/website/src/constants/chartConfigs/huiConfig.ts index 53c2c0488..63db08777 100644 --- a/packages/website/src/constants/chartConfigs/huiConfig.ts +++ b/packages/website/src/constants/chartConfigs/huiConfig.ts @@ -9,7 +9,7 @@ export type SondeMetricsKeys = Extract< export const huiConfig: Record = { salinity: { title: 'Salinity', - units: 'psu', + units: 'ppt', description: '', visibility: 'public', order: 1,