This commit is contained in:
Pieter Vander Vennet 2024-02-12 14:48:05 +01:00
parent 707d99619d
commit 48dfd13f71
2 changed files with 2 additions and 3 deletions

View file

@ -261,7 +261,7 @@ export class Unit {
return stripped ?? value
}
return human.Subs({ quantity: value })
return human.Subs({ quantity: stripped })
}
public toOsm(value: string, denomination: string) {

View file

@ -833,8 +833,7 @@ export default class SpecialVisualizations {
return value
}
const getCountry = () => tagSource.data._country
const [v, denom] = unit.findDenomination(value, getCountry)
return unit.asHumanLongValue(v, getCountry)
return unit.asHumanLongValue(value, getCountry)
})
)
},