mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-05-15 13:56:09 +02:00
Fix linting
This commit is contained in:
@@ -236,8 +236,7 @@ export function lppDisplayUnit(
|
||||
return { unit: '°F', value: (value * 9) / 5 + 32 };
|
||||
}
|
||||
if (typeName === 'current') {
|
||||
if (value <= 1)
|
||||
return { unit: 'mA', value: value * 1000 };
|
||||
if (value <= 1) return { unit: 'mA', value: value * 1000 };
|
||||
}
|
||||
return { unit: LPP_UNIT_MAP[typeName] ?? '', value };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user