Fix #1778
This commit is contained in:
parent
707d99619d
commit
48dfd13f71
2 changed files with 2 additions and 3 deletions
|
@ -261,7 +261,7 @@ export class Unit {
|
||||||
return stripped ?? value
|
return stripped ?? value
|
||||||
}
|
}
|
||||||
|
|
||||||
return human.Subs({ quantity: value })
|
return human.Subs({ quantity: stripped })
|
||||||
}
|
}
|
||||||
|
|
||||||
public toOsm(value: string, denomination: string) {
|
public toOsm(value: string, denomination: string) {
|
||||||
|
|
|
@ -833,8 +833,7 @@ export default class SpecialVisualizations {
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
const getCountry = () => tagSource.data._country
|
const getCountry = () => tagSource.data._country
|
||||||
const [v, denom] = unit.findDenomination(value, getCountry)
|
return unit.asHumanLongValue(value, getCountry)
|
||||||
return unit.asHumanLongValue(v, getCountry)
|
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue