Skip to content

Commit

Permalink
don't overwrite existing gc
Browse files Browse the repository at this point in the history
  • Loading branch information
brettedw committed Feb 7, 2024
1 parent 5e6a915 commit dfff196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/features/moreCast2/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit dfff196

Please sign in to comment.