aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-03-23 14:20:18 -0300
committerSebastian <sebasjm@gmail.com>2022-03-23 14:20:18 -0300
commit136c39ba9fb86080beaa27cd9e0c4d5086a2d691 (patch)
tree5b5ddd5477445bc5110441960d51c12294619e27
parentf187c1e13f749dbf929a9644481fa93220068bad (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.ts2
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) {