diff --git a/packages/taler-wallet-webextension/src/NavigationBar.tsx b/packages/taler-wallet-webextension/src/NavigationBar.tsx index aa2238753..fb6f280c3 100644 --- a/packages/taler-wallet-webextension/src/NavigationBar.tsx +++ b/packages/taler-wallet-webextension/src/NavigationBar.tsx @@ -117,6 +117,7 @@ export const Pages = { cta: pageDefinition<{ action: string }>("/cta/:action"), ctaPay: "/cta/pay", + ctaPayTemplate: "/cta/payTemplate", ctaRecovery: "/cta/recovery", ctaRefund: "/cta/refund", ctaTips: "/cta/tip", 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" && (