diff options
author | Florian Dold <florian@dold.me> | 2021-08-04 17:47:28 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-04 17:47:28 +0200 |
commit | 17f2132b4a2a0b5f038347814bc859a035b2ad80 (patch) | |
tree | 8e1f3d2e4817c337afcce5229847bf74d15c8d40 /packages/taler-util | |
parent | f88e14f66d37c339816cb9ba73a84491e7133307 (diff) |
fix test expectation in merchant-refund-api
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/talerconfig.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/taler-util/src/talerconfig.ts b/packages/taler-util/src/talerconfig.ts index ebc418859..32213f834 100644 --- a/packages/taler-util/src/talerconfig.ts +++ b/packages/taler-util/src/talerconfig.ts @@ -613,12 +613,8 @@ export class Configuration { } getAmount(section: string, option: string): ConfigValue<AmountJson> { - const val = ( - this.sectionMap[section] ?? { - entries: {}, - } - ).entries[option]; - return new ConfigValue(section, option, val.value, (x) => + const val = this.findEntry(section, option)?.value; + return new ConfigValue(section, option, val, (x) => Amounts.parseOrThrow(x), ); } |