This commit is contained in:
@ -67,7 +67,7 @@ function normalizeText(value) {
|
|||||||
|
|
||||||
function isHaramText(value) {
|
function isHaramText(value) {
|
||||||
const text = normalizeText(value);
|
const text = normalizeText(value);
|
||||||
return text.includes('haram') || text.includes('هرم');
|
return text.includes('haram') || text.includes('هرم') || text.includes('حرام');
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function PaymentsPage() {
|
export default function PaymentsPage() {
|
||||||
@ -170,6 +170,7 @@ export default function PaymentsPage() {
|
|||||||
isHaramText(selectedMethod?.name) ||
|
isHaramText(selectedMethod?.name) ||
|
||||||
isHaramText(selectedMethod?.label) ||
|
isHaramText(selectedMethod?.label) ||
|
||||||
isHaramText(selectedMethod?.id) ||
|
isHaramText(selectedMethod?.id) ||
|
||||||
|
isHaramText(selectedMethod?.description) ||
|
||||||
isHaramText(paymentKey);
|
isHaramText(paymentKey);
|
||||||
|
|
||||||
setPayingId(reservation.id);
|
setPayingId(reservation.id);
|
||||||
@ -342,7 +343,8 @@ function PaymentCard({ reservation, payingId, paymentMethods, loadingPaymentMeth
|
|||||||
isHaramText(selectedPayment) ||
|
isHaramText(selectedPayment) ||
|
||||||
isHaramText(selectedMethod?.name) ||
|
isHaramText(selectedMethod?.name) ||
|
||||||
isHaramText(selectedMethod?.label) ||
|
isHaramText(selectedMethod?.label) ||
|
||||||
isHaramText(selectedMethod?.id);
|
isHaramText(selectedMethod?.id) ||
|
||||||
|
isHaramText(selectedMethod?.description);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user