From dfff196c1fa586c82205013ae1d55b9ab63e5e6c Mon Sep 17 00:00:00 2001 From: Brett Edwards Date: Wed, 7 Feb 2024 13:42:27 -0800 Subject: [PATCH] don't overwrite existing gc --- web/src/features/moreCast2/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/features/moreCast2/util.ts b/web/src/features/moreCast2/util.ts index 71ec26c2a..026c20a8d 100644 --- a/web/src/features/moreCast2/util.ts +++ b/web/src/features/moreCast2/util.ts @@ -149,8 +149,8 @@ export const fillGrassCuring = (rows: MoreCast2Row[]): MoreCast2Row[] => { for (const row of rows) { const stationInfo = stationGrassMap.get(row.stationCode) - - if (stationInfo && row.grassCuringForecast) { + // fill the grass curing forecasted value, as long as it doesn't already have a value + if (stationInfo && row.grassCuringForecast && isNaN(row.grassCuringForecast.value)) { row.grassCuringForecast.value = stationInfo.grassCuring } }