aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/exchanges.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/exchanges.ts')
-rw-r--r--packages/taler-wallet-core/src/exchanges.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/exchanges.ts b/packages/taler-wallet-core/src/exchanges.ts
index dd88fa836..903f79dcd 100644
--- a/packages/taler-wallet-core/src/exchanges.ts
+++ b/packages/taler-wallet-core/src/exchanges.ts
@@ -2122,6 +2122,19 @@ export async function getExchangeTos(
): Promise<GetExchangeTosResult> {
const exch = await fetchFreshExchange(wex, exchangeBaseUrl);
+ switch (exch.tosStatus) {
+ case ExchangeTosStatus.MissingTos:
+ return {
+ tosStatus: ExchangeTosStatus.MissingTos,
+ acceptedEtag: undefined,
+ contentLanguage: undefined,
+ contentType: "text/plain",
+ content: "NULL",
+ currentEtag: "NULL",
+ tosAvailableLanguages: [],
+ };
+ }
+
const tosDownload = await downloadTosFromAcceptedFormat(
wex,
exchangeBaseUrl,