From bb6644367bc014fcc09e44a7b32c2f58861ac835 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 13 Feb 2023 09:28:42 -0300
Subject: fix #7468

---
 .../src/wallet/Transaction.tsx                     | 27 +++++++++++++++-------
 1 file changed, 19 insertions(+), 8 deletions(-)

(limited to 'packages/taler-wallet-webextension/src/wallet/Transaction.tsx')

diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
index 94d853d9a..d91f621db 100644
--- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
@@ -413,6 +413,7 @@ export function TransactionView({
         {transaction.extendedStatus !==
         ExtendedStatus.Pending ? undefined : transaction.withdrawalDetails
             .type === WithdrawalType.ManualTransfer ? (
+          //manual withdrawal
           <Fragment>
             <BankDetailsByPaytoType
               amount={raw}
@@ -463,6 +464,7 @@ export function TransactionView({
             </WarningBox>
           </Fragment>
         ) : (
+          //integrated bank withdrawal
           <Fragment>
             {!transaction.withdrawalDetails.confirmed &&
             transaction.withdrawalDetails.bankConfirmationUrl ? (
@@ -484,14 +486,23 @@ export function TransactionView({
                 </div>
               </InfoBox>
             ) : undefined}
-            {transaction.withdrawalDetails.confirmed && (
-              <InfoBox>
-                <i18n.Translate>
-                  Bank has confirmed the wire transfer. Waiting for the exchange
-                  to send the coins
-                </i18n.Translate>
-              </InfoBox>
-            )}
+            {transaction.withdrawalDetails.confirmed &&
+              !transaction.withdrawalDetails.reserveIsReady && (
+                <InfoBox>
+                  <i18n.Translate>
+                    Bank has confirmed the wire transfer. Waiting for the
+                    exchange to send the coins
+                  </i18n.Translate>
+                </InfoBox>
+              )}
+            {transaction.withdrawalDetails.confirmed &&
+              transaction.withdrawalDetails.reserveIsReady && (
+                <InfoBox>
+                  <i18n.Translate>
+                    Exchange is ready to send the coins, withdrawal in progress.
+                  </i18n.Translate>
+                </InfoBox>
+              )}
           </Fragment>
         )}
         <Part
-- 
cgit v1.2.3

