commit 120dc328d983518d07869f5e80f21e3f5ec9614d
parent f9858c5dad1b69db029a2f1db70b8c3adf2558f0
Author: Florian Dold <florian@dold.me>
Date: Sat, 18 Jul 2026 17:15:44 +0200
wallet-cli: fix ToS acceptance loop
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts
@@ -839,6 +839,10 @@ async function cliHandleTos(
exchangeBaseUrl,
},
);
+ if (exch.tosStatus !== ExchangeTosStatus.Proposed) {
+ // ToS already accepted (or not applicable) — nothing to prompt for.
+ return true;
+ }
if (exch.tosStatus === ExchangeTosStatus.Proposed) {
const res = await readlinePrompt(
`Accept terms of service of exchange ${exchangeBaseUrl}? [y/N/info]: `,