From bd88dcebbcf90414c790a86ee13740eaf20e3334 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 15 Oct 2022 12:59:26 +0200 Subject: wallet-core: simplify exchanges list response --- packages/taler-wallet-core/src/wallet.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-core/src/wallet.ts') diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index ef41c5101..3c7194059 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -146,7 +146,7 @@ import { } from "./operations/backup/index.js"; import { setWalletDeviceId } from "./operations/backup/state.js"; import { getBalances } from "./operations/balance.js"; -import { runOperationWithErrorReporting } from "./operations/common.js"; +import { getExchangeTosStatus, runOperationWithErrorReporting } from "./operations/common.js"; import { createDepositGroup, getFeeForDeposit, @@ -503,6 +503,7 @@ async function getExchangeTos( currentEtag, content, contentType, + tosStatus: getExchangeTosStatus(exchangeDetails), }; } @@ -519,6 +520,7 @@ async function getExchangeTos( currentEtag, content, contentType, + tosStatus: getExchangeTosStatus(exchangeDetails), }; } @@ -529,6 +531,7 @@ async function getExchangeTos( currentEtag: tosDownload.tosEtag, content: tosDownload.tosText, contentType: tosDownload.tosContentType, + tosStatus: getExchangeTosStatus(exchangeDetails), }; } @@ -665,7 +668,7 @@ async function getExchanges( exchanges.push({ exchangeBaseUrl: r.baseUrl, currency, - tos, + tosStatus: getExchangeTosStatus(exchangeDetails), paytoUris: exchangeDetails.wireInfo.accounts.map((x) => x.payto_uri), }); } -- cgit v1.2.3