diff options
author | Sebastian <sebasjm@gmail.com> | 2022-03-23 14:20:18 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-03-23 14:20:18 -0300 |
commit | 136c39ba9fb86080beaa27cd9e0c4d5086a2d691 (patch) | |
tree | 5b5ddd5477445bc5110441960d51c12294619e27 | |
parent | f187c1e13f749dbf929a9644481fa93220068bad (diff) |
-fix TS2345: Argument of type 'AmountJson' is not assignable to parameter of type 'never'
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay.ts b/packages/taler-wallet-core/src/operations/pay.ts index dcfd6841d..1c1a0f506 100644 --- a/packages/taler-wallet-core/src/operations/pay.ts +++ b/packages/taler-wallet-core/src/operations/pay.ts @@ -120,7 +120,7 @@ export async function getTotalPaymentCost( return ws.db .mktx((x) => ({ coins: x.coins, denominations: x.denominations })) .runReadOnly(async (tx) => { - const costs = []; + const costs: AmountJson[] = []; for (let i = 0; i < pcs.coinPubs.length; i++) { const coin = await tx.coins.get(pcs.coinPubs[i]); if (!coin) { |