Use 'useIfNoUnitSet' as 'defaultUnit' again
This commit is contained in:
parent
d13a0769bc
commit
9f3ea0581a
1 changed files with 3 additions and 1 deletions
|
@ -116,7 +116,9 @@ export class Unit {
|
||||||
(u, i) =>
|
(u, i) =>
|
||||||
new Denomination(
|
new Denomination(
|
||||||
u,
|
u,
|
||||||
u.canonicalDenomination.trim() === json.defaultInput,
|
u.canonicalDenomination === undefined
|
||||||
|
? undefined
|
||||||
|
: u.canonicalDenomination.trim() === json.defaultInput,
|
||||||
`${ctx}.units[${i}]`
|
`${ctx}.units[${i}]`
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue