-rename
This commit is contained in:
parent
d63a773bf5
commit
ab48d3df6e
@ -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<ExchangeListItem> =>
|
||||
.property("tosStatus", codecForAny())
|
||||
.property("exchangeStatus", codecForAny())
|
||||
.property("permanent", codecForBoolean())
|
||||
.property("supportedAgeGroups", codecForList(codecForNumber()))
|
||||
.property("ageRestrictionOptions", codecForList(codecForNumber()))
|
||||
.build("ExchangeListItem");
|
||||
|
||||
export const codecForExchangesListResponse = (): Codec<ExchangesListResponse> =>
|
||||
|
@ -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)
|
||||
: [],
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user