fix for the sen5x variable in device status by removing the underscore

This commit is contained in:
csawatzky 2025-05-01 13:53:22 -06:00
parent bfd3b6bb5f
commit ee86ec176c
2 changed files with 5 additions and 5 deletions

2
package-lock.json generated
View file

@ -10993,7 +10993,7 @@
},
"node_modules/protobuf-ts": {
"version": "1.0.0",
"resolved": "git+https://gitlab+deploy-token-50627:hv8mB4WkyvtjBpJKU1rN@gitlab.com/brandx/protobuf-ts.git#aa8f16032048128898ec624f215fd03427957962",
"resolved": "git+https://gitlab+deploy-token-50627:hv8mB4WkyvtjBpJKU1rN@gitlab.com/brandx/protobuf-ts.git#71512b1821dbe01eebe5ebb9539ce5a6a8f865a7",
"dependencies": {
"protobufjs": "^6.8.8"
}

View file

@ -142,12 +142,12 @@ export default function StatusPlenum(props: Props) {
>
<Grid2>
<Typography variant="body2" style={{ color: green[300]}}>
{device.status.sen5x?.dust_1ug.toFixed(1)}ug/m3
{device.status.sen5x?.dust1ug.toFixed(1)}ug/m3
</Typography>
</Grid2>
<Grid2>
<Typography variant="body2" style={{ color: green[400]}}>
{device.status.sen5x?.dust_2ug.toFixed(1)}ug/m3
{device.status.sen5x?.dust2ug.toFixed(1)}ug/m3
</Typography>
</Grid2>
</Grid2>
@ -159,12 +159,12 @@ export default function StatusPlenum(props: Props) {
>
<Grid2>
<Typography variant="body2" style={{ color: green[500]}}>
{device.status.sen5x?.dust_4ug.toFixed(1)}ug/m3
{device.status.sen5x?.dust4ug.toFixed(1)}ug/m3
</Typography>
</Grid2>
<Grid2>
<Typography variant="body2" style={{ color: green[600]}}>
{device.status.sen5x?.dust_10ug.toFixed(1)}ug/m3
{device.status.sen5x?.dust10ug.toFixed(1)}ug/m3
</Typography>
</Grid2>
</Grid2>