diff --git a/interface/src/project/ValueForm.tsx b/interface/src/project/ValueForm.tsx index e96e06e15..3b439fdf9 100644 --- a/interface/src/project/ValueForm.tsx +++ b/interface/src/project/ValueForm.tsx @@ -15,7 +15,7 @@ import { } from '@material-ui/core'; import { FormButton } from '../components'; -import { DeviceValue, DeviceValueUOM, DeviceValueUOM_s } from './EMSESPtypes'; +import { DeviceValue, DeviceValueUOM_s } from './EMSESPtypes'; interface ValueFormProps { devicevalue: DeviceValue; @@ -25,17 +25,6 @@ interface ValueFormProps { data: keyof DeviceValue ) => (event: React.ChangeEvent) => void; } - -function formatValue(value: any, uom: number) { - if (uom === DeviceValueUOM.DEGREES) { - return new Intl.NumberFormat(undefined, { - minimumFractionDigits: 1 - }).format(value); - } - - return value; -} - class ValueForm extends React.Component { formRef: RefObject = React.createRef(); @@ -79,7 +68,7 @@ class ValueForm extends React.Component { {!devicevalue.l && (