aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/withdraw.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts
index 0e6bb8339..a9ecdf369 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -1385,6 +1385,7 @@ export async function getWithdrawalDetailsForUri(
x.exchangeDetails,
x.exchangeTos,
x.denominations,
+ x.operationRetries,
])
.runReadOnly(async (tx) => {
const exchangeRecords = await tx.exchanges.iter().toArray();
@@ -1396,8 +1397,13 @@ export async function getWithdrawalDetailsForUri(
const denominations = await tx.denominations.indexes.byExchangeBaseUrl
.iter(r.baseUrl)
.toArray();
+ const retryRecord = await tx.operationRetries.get(
+ RetryTags.forExchangeUpdate(r),
+ );
if (exchangeDetails && denominations) {
- exchanges.push(makeExchangeListItem(r, exchangeDetails));
+ exchanges.push(
+ makeExchangeListItem(r, exchangeDetails, retryRecord?.lastError),
+ );
}
}
});