diff --git a/src/Models/Unit.ts b/src/Models/Unit.ts index 06e09446c..3ed096095 100644 --- a/src/Models/Unit.ts +++ b/src/Models/Unit.ts @@ -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) { diff --git a/src/UI/SpecialVisualizations.ts b/src/UI/SpecialVisualizations.ts index 81705161e..64b3783b7 100644 --- a/src/UI/SpecialVisualizations.ts +++ b/src/UI/SpecialVisualizations.ts @@ -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) }) ) },