diff --git a/packages/wallet-webui/src/screens/TermsScreen.tsx b/packages/wallet-webui/src/screens/TermsScreen.tsx index efcaee0f7..1873de302 100644 --- a/packages/wallet-webui/src/screens/TermsScreen.tsx +++ b/packages/wallet-webui/src/screens/TermsScreen.tsx @@ -40,6 +40,8 @@ export function TermsScreen(props: { onSave: () => void; onBack: () => void; }) { + // wallet-core answers "missing-tos" with the placeholder body "NULL" + const missingTerms = props.status === "missing-tos"; const markdownTooLarge = props.content !== undefined && isMarkdownContentType(props.contentType) && @@ -68,7 +70,15 @@ export function TermsScreen(props: { )} {props.error && } - {props.content !== undefined && ( + {props.content !== undefined && missingTerms && ( + +

{i18n.str`No terms published`}

+

{ + /* Translators: An exchange is a GNU Taler service issuing and redeeming digital cash, not an action that converts one currency into another. */ i18n.str`This exchange has not published any terms of service, so there is nothing to accept.` + }

+
+ )} + {props.content !== undefined && !missingTerms && ( <>
{/* Translators: %1$s is a localized exchange terms-of-service status. */}