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) =>
|
||||
new Denomination(
|
||||
u,
|
||||
u.canonicalDenomination.trim() === json.defaultInput,
|
||||
u.canonicalDenomination === undefined
|
||||
? undefined
|
||||
: u.canonicalDenomination.trim() === json.defaultInput,
|
||||
`${ctx}.units[${i}]`
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue