From ab48d3df6ed738251ffdb8c028ceb0d981534137 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 1 Nov 2022 15:36:10 +0100 Subject: -rename --- packages/taler-util/src/wallet-types.ts | 4 ++-- packages/taler-wallet-core/src/operations/common.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 3eafe7522..24a97ba12 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -919,7 +919,7 @@ export interface ExchangeListItem { paytoUris: string[]; tosStatus: ExchangeTosStatus; exchangeStatus: ExchangeEntryStatus; - supportedAgeGroups: number[]; + ageRestrictionOptions: number[]; /** * Permanently added to the wallet, as opposed to just * temporarily queried. @@ -999,7 +999,7 @@ export const codecForExchangeListItem = (): Codec => .property("tosStatus", codecForAny()) .property("exchangeStatus", codecForAny()) .property("permanent", codecForBoolean()) - .property("supportedAgeGroups", codecForList(codecForNumber())) + .property("ageRestrictionOptions", codecForList(codecForNumber())) .build("ExchangeListItem"); export const codecForExchangesListResponse = (): Codec => diff --git a/packages/taler-wallet-core/src/operations/common.ts b/packages/taler-wallet-core/src/operations/common.ts index 3ac003da3..e29065390 100644 --- a/packages/taler-wallet-core/src/operations/common.ts +++ b/packages/taler-wallet-core/src/operations/common.ts @@ -366,7 +366,7 @@ export function makeExchangeListItem( paytoUris: [], exchangeStatus: ExchangeEntryStatus.Unknown, permanent: r.permanent, - supportedAgeGroups: [], + ageRestrictionOptions: [], }; } let exchangeStatus; @@ -378,7 +378,7 @@ export function makeExchangeListItem( paytoUris: exchangeDetails.wireInfo.accounts.map((x) => x.payto_uri), exchangeStatus, permanent: r.permanent, - supportedAgeGroups: exchangeDetails.ageMask + ageRestrictionOptions: exchangeDetails.ageMask ? AgeRestriction.getAgeGroupsFromMask(exchangeDetails.ageMask) : [], }; -- cgit v1.2.3