From b784144edf2cf21b886bfbea6750cac69fb94159 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 8 Sep 2023 18:09:33 -0300
Subject: remove references to product and delivery

---
 .../src/wallet/Transaction.tsx                     | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 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 e54137016..018d3ccb4 100644
--- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
@@ -237,8 +237,8 @@ function TransactionTemplate({
     <Fragment>
       <section style={{ padding: 8, textAlign: "center" }}>
         {transaction?.error &&
-        // FIXME: wallet core should stop sending this error on KYC
-        transaction.error.code !==
+          // FIXME: wallet core should stop sending this error on KYC
+          transaction.error.code !==
           TalerErrorCode.WALLET_WITHDRAWAL_KYC_REQUIRED ? (
           <ErrorAlertView
             error={alertFromError(
@@ -464,7 +464,7 @@ export function TransactionView({
 
         {/**FIXME: DD37 check if this holds */}
         {transaction.txState.major !==
-        TransactionMajorState.Pending ? undefined : transaction
+          TransactionMajorState.Pending ? undefined : transaction
             .withdrawalDetails.type === WithdrawalType.ManualTransfer ? (
           //manual withdrawal
           <BankDetailsByPaytoType
@@ -1475,10 +1475,10 @@ export function PurchaseDetails({
 
   const total = Amounts.add(price.value, price.fee).amount;
 
-  const hasProducts = info.products && info.products.length > 0;
+  // const hasProducts = info.products && info.products.length > 0;
 
-  const hasShipping =
-    info.delivery_date !== undefined || info.delivery_location !== undefined;
+  // const hasShipping =
+  //   info.delivery_date !== undefined || info.delivery_location !== undefined;
 
   const showLargePic = (): void => {
     return;
@@ -1558,7 +1558,7 @@ export function PurchaseDetails({
           </tr>
         </Fragment>
       )}
-      {hasProducts && (
+      {/* {hasProducts && (
         <tr>
           <td colSpan={2}>
             <PartCollapsible
@@ -1586,8 +1586,8 @@ export function PurchaseDetails({
             />
           </td>
         </tr>
-      )}
-      {hasShipping && (
+      )} */}
+      {/* {hasShipping && (
         <tr>
           <td colSpan={2}>
             <PartCollapsible
@@ -1602,7 +1602,7 @@ export function PurchaseDetails({
             />
           </td>
         </tr>
-      )}
+      )} */}
       <tr>
         <td>
           <ShowFullContractTermPopup proposalId={proposalId} />
@@ -2008,7 +2008,7 @@ function ShowWithdrawalDetailForBankIntegrated({
         />
       )}
       {!transaction.withdrawalDetails.confirmed &&
-      transaction.withdrawalDetails.bankConfirmationUrl ? (
+        transaction.withdrawalDetails.bankConfirmationUrl ? (
         <InfoBox>
           <div style={{ display: "block" }}>
             <i18n.Translate>
-- 
cgit v1.2.3

