diff options
-rw-r--r-- | packages/demobank-ui/src/pages/business/CreateCashout.tsx | 6 | ||||
-rw-r--r-- | packages/taler-util/src/http-client/types.ts | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/demobank-ui/src/pages/business/CreateCashout.tsx b/packages/demobank-ui/src/pages/business/CreateCashout.tsx index 3d3f30250..67fc47e60 100644 --- a/packages/demobank-ui/src/pages/business/CreateCashout.tsx +++ b/packages/demobank-ui/src/pages/business/CreateCashout.tsx @@ -114,9 +114,9 @@ export function CreateCashout({ return <ErrorLoading error={info} /> } - const conversionInfo = info.body.conversion_info + const conversionInfo = info.body.conversion_rate if (!conversionInfo) { - return <div>conversion enabled but server replied without conversion_info</div> + return <div>conversion enabled but server replied without conversion_rate</div> } const account = { @@ -284,7 +284,7 @@ export function CreateCashout({ <span><i18n.Translate>To account</i18n.Translate></span> </dt> <dd class="text-sm text-gray-900"> - {cashoutAccountName } + {cashoutAccountName} </dd> </div> : <div class="flex items-center justify-between border-t-2 afu pt-4"> diff --git a/packages/taler-util/src/http-client/types.ts b/packages/taler-util/src/http-client/types.ts index 797861998..bc9c2bc82 100644 --- a/packages/taler-util/src/http-client/types.ts +++ b/packages/taler-util/src/http-client/types.ts @@ -785,7 +785,7 @@ export const codecForConversionBankConfig = .property("fiat_currency", codecForString()) .property("fiat_currency_specification", codecForCurrencySpecificiation()) - .property("conversion_info", codecOptional(codecForConversionInfo())) + .property("conversion_rate", codecOptional(codecForConversionInfo())) .build("ConversionBankConfig.IntegrationConfig") // export const codecFor = @@ -1085,7 +1085,7 @@ export namespace TalerBankConversionApi { // Extra conversion rate information. // Only present if server opts in to report the static conversion rate. - conversion_info?: ConversionInfo + conversion_rate?: ConversionInfo } export interface CashinConversionResponse { |