hata düzeltme 2

This commit is contained in:
2026-01-30 00:24:40 +03:00
parent d14b293bd8
commit 215788f858

View File

@@ -76,9 +76,11 @@ export default function SmsPageClient({ customers }: SmsPageProps) {
try {
const props = ['tel'];
const opts = { multiple: true };
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const contacts = await (navigator as any).contacts.select(props, opts);
if (contacts && contacts.length > 0) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const newNumbers = contacts.map((contact: any) => {
const phone = contact.tel?.[0]
return phone ? phone.replace(/\s/g, '') : null;