Apply patch [skip ci]

This commit is contained in:
open-swe-dev-andrinoid[bot] 2026-01-21 23:16:50 +00:00
parent f6cb8cdbf3
commit 6e61a1e3f4

View File

@ -75,8 +75,8 @@ export default function PaymentMethodsList(
if (decryptedData) { if (decryptedData) {
const accountNumber = decryptedData; const accountNumber = decryptedData;
// Show only last 4 digits // Show only last 4 digits
processedMethod.maskedAccountNumber = processedMethod.maskedAccountNumber = "****" +
"****" + accountNumber.slice(-4); accountNumber.slice(-4);
} }
} catch (error) { } catch (error) {
console.error("Failed to decrypt account number:", error); console.error("Failed to decrypt account number:", error);
@ -93,8 +93,8 @@ export default function PaymentMethodsList(
if (decryptedData) { if (decryptedData) {
const routingNumber = decryptedData; const routingNumber = decryptedData;
// Show only last 4 digits // Show only last 4 digits
processedMethod.maskedRoutingNumber = processedMethod.maskedRoutingNumber = "****" +
"****" + routingNumber.slice(-4); routingNumber.slice(-4);
} }
} catch (error) { } catch (error) {
console.error("Failed to decrypt routing number:", error); console.error("Failed to decrypt routing number:", error);
@ -147,7 +147,8 @@ export default function PaymentMethodsList(
{popupAddPaymentMethodDialog} {popupAddPaymentMethodDialog}
<div class="space-y-4"> <div class="space-y-4">
{processedMethods.length === 0 ? ( {processedMethods.length === 0
? (
<div class="text-center py-12 bg-white rounded-lg shadow"> <div class="text-center py-12 bg-white rounded-lg shadow">
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
@ -177,7 +178,8 @@ export default function PaymentMethodsList(
Add Payment Method Add Payment Method
</button> </button>
</div> </div>
) : ( )
: (
<> <>
<ul class="space-y-4"> <ul class="space-y-4">
{processedMethods.map((method) => ( {processedMethods.map((method) => (