diff --git a/packages/taler-wallet-core/src/common.ts b/packages/taler-wallet-core/src/common.ts index 7adc674ea..1d3b3c7b1 100644 --- a/packages/taler-wallet-core/src/common.ts +++ b/packages/taler-wallet-core/src/common.ts @@ -354,6 +354,13 @@ export function getExchangeTosStatusFromRecord( exchange: WalletExchangeEntry, ): ExchangeTosStatus { if (exchange.tosCurrentEtag == null) { + // No terms are known for this exchange. Before the exchange has been + // contacted for the first time that means "not known yet", which is + // what Pending is for; MissingTos is a statement about the exchange + // ("it has none") and clients skip the acceptance step on it. + if (exchange.detailsPointer == null) { + return ExchangeTosStatus.Pending; + } return ExchangeTosStatus.MissingTos; } if (!exchange.tosAcceptedEtag) {