chore: Linter warnings
This commit is contained in:
parent
035cc04572
commit
7cf7d1a394
8 changed files with 5 additions and 47 deletions
|
@ -542,7 +542,7 @@ export const MeasieInput = ({
|
|||
// Update onChange
|
||||
const localUpdate = (newVal) => {
|
||||
setLocalVal(newVal)
|
||||
const parsedVal = isDegree ? Number(newVal) : parseDistanceInput(newVal, imperial)
|
||||
const parsedVal = isDegree ? Number(newVal) : distanceAsMm(newVal, imperial)
|
||||
if (parsedVal) {
|
||||
update(m, isDegree ? parsedVal : measurementAsMm(parsedVal, units))
|
||||
setValid(true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue