From 1723f16b9c4b008e9e44578c2587c7a1bd6560b4 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Sat, 25 Feb 2023 19:43:45 -0300
Subject: some fixes afte testing demobank with ms

---
 packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

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

diff --git a/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx b/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx
index d859b1cc7..07b011a00 100644
--- a/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx
+++ b/packages/demobank-ui/src/pages/PaytoWireTransferForm.tsx
@@ -48,7 +48,7 @@ export function PaytoWireTransferForm({
   onSuccess: () => void;
   currency: string;
 }): VNode {
-  const backend = useBackendContext();
+  // const backend = useBackendContext();
   // const { pageState, pageStateSetter } = usePageContext(); // NOTE: used for go-back button?
 
   const [isRawPayto, setIsRawPayto] = useState(false);
@@ -188,17 +188,7 @@ export function PaytoWireTransferForm({
                   paytoUri,
                   amount: `${currency}:${amount}`,
                 });
-                // return await createTransactionCall(
-                //   transactionData,
-                //   backend.state,
-                //   pageStateSetter,
-                //   () => {
-                //     setAmount(undefined);
-                //     setIban(undefined);
-                //     setSubject(undefined);
-                //   },
-                //   i18n,
-                // );
+                onSuccess();
               }}
             />
             <input
-- 
cgit v1.2.3

