From 6e61a1e3f490d3d5dda28bf7bb0dabc3493100b9 Mon Sep 17 00:00:00 2001 From: "open-swe-dev-andrinoid[bot]" Date: Wed, 21 Jan 2026 23:16:50 +0000 Subject: [PATCH] Apply patch [skip ci] --- islands/PaymentMethodsList.tsx | 290 +++++++++++++++++---------------- 1 file changed, 146 insertions(+), 144 deletions(-) diff --git a/islands/PaymentMethodsList.tsx b/islands/PaymentMethodsList.tsx index d355062..f751463 100644 --- a/islands/PaymentMethodsList.tsx +++ b/islands/PaymentMethodsList.tsx @@ -75,8 +75,8 @@ export default function PaymentMethodsList( if (decryptedData) { const accountNumber = decryptedData; // Show only last 4 digits - processedMethod.maskedAccountNumber = - "****" + accountNumber.slice(-4); + processedMethod.maskedAccountNumber = "****" + + accountNumber.slice(-4); } } catch (error) { console.error("Failed to decrypt account number:", error); @@ -93,8 +93,8 @@ export default function PaymentMethodsList( if (decryptedData) { const routingNumber = decryptedData; // Show only last 4 digits - processedMethod.maskedRoutingNumber = - "****" + routingNumber.slice(-4); + processedMethod.maskedRoutingNumber = "****" + + routingNumber.slice(-4); } } catch (error) { console.error("Failed to decrypt routing number:", error); @@ -147,153 +147,155 @@ export default function PaymentMethodsList( {popupAddPaymentMethodDialog}
- {processedMethods.length === 0 ? ( -
- - - -

- No payment methods -

-

- Add a payment method to get started with rent payments. -

- -
- ) : ( - <> - - -
+ {processedMethods.length === 0 + ? ( +
+ + + +

+ No payment methods +

+

+ Add a payment method to get started with rent payments. +

- - )} + ) + : ( + <> +
    + {processedMethods.map((method) => ( +
  • +
    +
    +
    +

    + {method.bank_name || "Bank Account"} +

    + {method.is_default && ( + + Default + + )} +
    +
    +
    + Type:{" "} + {method.account_type === "checking" + ? "Checking" + : method.account_type === "savings" + ? "Savings" + : method.account_type || "Unknown"} +
    +
    + Account:{" "} + {method.maskedAccountNumber || "****"} +
    +
    + Routing:{" "} + {method.maskedRoutingNumber || "****"} +
    +
    +
    + +
    + {!method.is_default && ( + + )} + +
    + + + +
    +
    +
    +
  • + ))} +
+ +
+ +
+ + )}
);