From 6106caeba9e017242dfd334c34c8473aefb6ffb0 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 13 Feb 2023 15:32:23 -0300 Subject: fix broken build since wallet-core new api and placeholder for payment-temlate --- .../src/components/TermsOfService/views.tsx | 37 +++++++++++++++------- 1 file changed, 26 insertions(+), 11 deletions(-) (limited to 'packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx') diff --git a/packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx b/packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx index 0b5a71b3e..415ee1605 100644 --- a/packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx +++ b/packages/taler-wallet-webextension/src/components/TermsOfService/views.tsx @@ -142,23 +142,38 @@ export function ShowTosContentView({
- The exchange reply with a empty terms of service + The exchange replied with a empty terms of service
)} {terms.content && (
- {terms.content.type === "xml" && ( - - - - )} - {terms.content.type === "plain" && ( -
-
{terms.content.content}
-
- )} + {terms.content.type === "xml" && + (!terms.content.document ? ( + + + No terms of service. The exchange replied with a empty + document + + + ) : ( + + + + ))} + {terms.content.type === "plain" && + (!terms.content.content ? ( + + + No terms of service. The exchange replied with a empty text + + + ) : ( +
+
{terms.content.content}
+
+ ))} {terms.content.type === "html" && (