fix(frontend): connected devices no rssi state when dBm is zero
This commit is contained in:
parent
35372dd980
commit
8e1760fad1
|
|
@ -114,7 +114,9 @@ export const ConnectedDevices = () => {
|
||||||
<Tooltip title={getConnectionState(property.rssi)}>
|
<Tooltip title={getConnectionState(property.rssi)}>
|
||||||
<Typography display={"flex"} color={() => {
|
<Typography display={"flex"} color={() => {
|
||||||
let rssi = property.rssi
|
let rssi = property.rssi
|
||||||
if (rssi > -30) {
|
if(rssi == 0){
|
||||||
|
return theme.palette.neutral[900]
|
||||||
|
} else if (rssi > -30) {
|
||||||
return theme.palette.success.main
|
return theme.palette.success.main
|
||||||
} else if (rssi > -60) {
|
} else if (rssi > -60) {
|
||||||
return theme.palette.success.main
|
return theme.palette.success.main
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user