From 9a7e7fb5f8ba6aa5011d282465c312f4d08e807a Mon Sep 17 00:00:00 2001 From: Rahaf Date: Mon, 13 Jul 2026 21:04:14 +0300 Subject: [PATCH] Edit payment --- app/payments/page.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/payments/page.js b/app/payments/page.js index 59e31f5..3bb24d8 100644 --- a/app/payments/page.js +++ b/app/payments/page.js @@ -67,7 +67,7 @@ function normalizeText(value) { function isHaramText(value) { const text = normalizeText(value); - return text.includes('haram') || text.includes('هرم'); + return text.includes('haram') || text.includes('هرم') || text.includes('حرام'); } export default function PaymentsPage() { @@ -170,6 +170,7 @@ export default function PaymentsPage() { isHaramText(selectedMethod?.name) || isHaramText(selectedMethod?.label) || isHaramText(selectedMethod?.id) || + isHaramText(selectedMethod?.description) || isHaramText(paymentKey); setPayingId(reservation.id); @@ -342,7 +343,8 @@ function PaymentCard({ reservation, payingId, paymentMethods, loadingPaymentMeth isHaramText(selectedPayment) || isHaramText(selectedMethod?.name) || isHaramText(selectedMethod?.label) || - isHaramText(selectedMethod?.id); + isHaramText(selectedMethod?.id) || + isHaramText(selectedMethod?.description); return ( <>