From 366b2e6d8bdaab0995ce43e8f56edb3600ab7c01 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 12 Jun 2024 00:31:25 -0300
Subject: fix #8887 #8896

---
 .../src/cta/Withdraw/views.tsx                      | 21 +++------------------
 1 file changed, 3 insertions(+), 18 deletions(-)

(limited to 'packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx')

diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx b/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx
index 86d7248a4..b6a356de8 100644
--- a/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx
+++ b/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx
@@ -39,6 +39,7 @@ import {
   getAmountWithFee,
 } from "../../wallet/Transaction.js";
 import { State } from "./index.js";
+import { Amounts } from "@gnu-taler/taler-util";
 
 export function FinalStateOperation(state: State.AlreadyCompleted): VNode {
   const { i18n } = useTranslationContext();
@@ -143,8 +144,6 @@ export function FinalStateOperation(state: State.AlreadyCompleted): VNode {
 
 export function SuccessView(state: State.Success): VNode {
   const { i18n } = useTranslationContext();
-  // const currentTosVersionIsAccepted =
-  //   state.currentExchange.tosStatus === ExchangeTosStatus.Accepted;
   return (
     <Fragment>
       <section style={{ textAlign: "left" }}>
@@ -212,9 +211,10 @@ export function SuccessView(state: State.Success): VNode {
               conversion={state.conversionInfo?.amount}
               amount={getAmountWithFee(
                 state.toBeReceived,
-                state.amount.value,
+                state.toBeSent,
                 "credit",
               )}
+              bankFee={state.bankFee}
             />
           }
         />
@@ -232,7 +232,6 @@ export function SuccessView(state: State.Success): VNode {
       </section>
 
       <section>
-        {/* <div> */}
         <TermsOfService exchangeUrl={state.currentExchange.exchangeBaseUrl}>
           <Button
             variant="contained"
@@ -245,20 +244,6 @@ export function SuccessView(state: State.Success): VNode {
             </i18n.Translate>
           </Button>
         </TermsOfService>
-        {/* </div>
-        <div style={{ marginTop: 20 }}>
-          <Button
-            variant="text"
-            color="success"
-
-            disabled={!state.doAbort.onClick}
-            onClick={state.doAbort.onClick}
-          >
-            <i18n.Translate>
-              Cancel
-            </i18n.Translate>
-          </Button>
-        </div> */}
       </section>
       {state.talerWithdrawUri ? (
         <WithdrawWithMobile talerWithdrawUri={state.talerWithdrawUri} />
-- 
cgit v1.2.3

