forked from amer2004/SweetHome
Edit payment
This commit is contained in:
@ -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 (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user