aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-11-24 18:14:51 -0300
committerSebastian <sebasjm@gmail.com>2023-11-24 18:14:51 -0300
commiteac07ec34f9141106054500e4497b5aedfe04a89 (patch)
tree67f770403f82987a67fdd78e8ca7771ac9621bf5 /packages
parentaddeb988dc989f097e04241a1050b3008f9884b1 (diff)
fix api break
Diffstat (limited to 'packages')
-rw-r--r--packages/demobank-ui/src/pages/business/CreateCashout.tsx6
-rw-r--r--packages/taler-util/src/http-client/types.ts4
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 {