Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const FormFieldMeasurement = props => {
const update = evt => {
props.updateValue(
props.name,
measurementAsMm(evt.target.value, props.units)
);
};
return (
{measurementAsMm(props.value, props.units) === false ? (
) : (
{props.units === "imperial" ? '"' : "cm"}
)}
)
}}
/>