hata düzeltme 2
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user