From c67d94c56e154be4b2cf91572cdc2d8d2da7f8e4 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Sat, 11 Mar 2023 18:19:38 -0300
Subject: fix: #7753

---
 packages/demobank-ui/src/pages/PaymentOptions.tsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'packages/demobank-ui/src/pages/PaymentOptions.tsx')

diff --git a/packages/demobank-ui/src/pages/PaymentOptions.tsx b/packages/demobank-ui/src/pages/PaymentOptions.tsx
index 610efafc0..291f2aa9e 100644
--- a/packages/demobank-ui/src/pages/PaymentOptions.tsx
+++ b/packages/demobank-ui/src/pages/PaymentOptions.tsx
@@ -14,6 +14,7 @@
  GNU Taler; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
  */
 
+import { AmountJson } from "@gnu-taler/taler-util";
 import { useTranslationContext } from "@gnu-taler/web-util/lib/index.browser";
 import { h, VNode } from "preact";
 import { useState } from "preact/hooks";
@@ -25,7 +26,7 @@ import { WalletWithdrawForm } from "./WalletWithdrawForm.js";
  * Let the user choose a payment option,
  * then specify the details trigger the action.
  */
-export function PaymentOptions({ currency }: { currency: string }): VNode {
+export function PaymentOptions({ limit }: { limit: AmountJson }): VNode {
   const { i18n } = useTranslationContext();
   const { pageStateSetter } = usePageContext();
 
@@ -62,7 +63,7 @@ export function PaymentOptions({ currency }: { currency: string }): VNode {
             <h3>{i18n.str`Obtain digital cash`}</h3>
             <WalletWithdrawForm
               focus
-              currency={currency}
+              limit={limit}
               onSuccess={(data) => {
                 pageStateSetter((prevState: PageStateType) => ({
                   ...prevState,
@@ -80,7 +81,7 @@ export function PaymentOptions({ currency }: { currency: string }): VNode {
             <h3>{i18n.str`Transfer to bank account`}</h3>
             <PaytoWireTransferForm
               focus
-              currency={currency}
+              limit={limit}
               onSuccess={() => {
                 pageStateSetter((prevState: PageStateType) => ({
                   ...prevState,
-- 
cgit v1.2.3

