Edit payment
All checks were successful
Build frontend / build (push) Successful in 53s

This commit is contained in:
Rahaf
2026-07-13 21:04:14 +03:00
parent c01ada480d
commit 9a7e7fb5f8

View File

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