1
0
Fork 0

chore: Linter warnings

This commit is contained in:
joostdecock 2024-12-10 12:16:08 +01:00
parent 035cc04572
commit 7cf7d1a394
8 changed files with 5 additions and 47 deletions

View file

@ -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)