diff --git a/src/routes/Receive.tsx b/src/routes/Receive.tsx index 073285a..1e29b38 100644 --- a/src/routes/Receive.tsx +++ b/src/routes/Receive.tsx @@ -174,20 +174,14 @@ export default function Receive() { async function processContacts( contacts: Partial[] ): Promise { - console.log("Processing contacts", contacts); - if (contacts.length) { const first = contacts![0]; if (!first.name) { - console.error( - "Something went wrong with contact creation, proceeding anyway" - ); return []; } if (!first.id && first.name) { - console.error("Creating new contact", first.name); const c = new Contact( first.name, undefined, @@ -202,14 +196,10 @@ export default function Receive() { } if (first.id) { - console.error("Using existing contact", first.name, first.id); return [first.id]; } } - console.error( - "Something went wrong with contact creation, proceeding anyway" - ); return []; } diff --git a/src/routes/Send.tsx b/src/routes/Send.tsx index 015d955..7f08792 100644 --- a/src/routes/Send.tsx +++ b/src/routes/Send.tsx @@ -376,20 +376,14 @@ export default function Send() { async function processContacts( contacts: Partial[] ): Promise { - console.log("Processing contacts", contacts); - if (contacts.length) { const first = contacts![0]; if (!first.name) { - console.error( - "Something went wrong with contact creation, proceeding anyway" - ); return []; } if (!first.id && first.name) { - console.error("Creating new contact", first.name); const c = new Contact( first.name, undefined, @@ -404,14 +398,10 @@ export default function Send() { } if (first.id) { - console.error("Using existing contact", first.name, first.id); return [first.id]; } } - console.error( - "Something went wrong with contact creation, proceeding anyway" - ); return []; }