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 ( <>