From 984244117bd72e48bb3245e7769e7606733c7896 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Mon, 4 Aug 2025 09:02:24 -0600 Subject: [PATCH] chore: Remove duplicate checks for bad contact methods. --- src/views/ContactEditView.vue | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/views/ContactEditView.vue b/src/views/ContactEditView.vue index 2c4cebfd..5b6f63a5 100644 --- a/src/views/ContactEditView.vue +++ b/src/views/ContactEditView.vue @@ -239,21 +239,7 @@ export default class ContactEditView extends Vue { this.contact = contact; this.contactName = contact.name || ""; this.contactNotes = contact.notes || ""; - - // Ensure contactMethods is a valid array of ContactMethod objects - if (Array.isArray(contact.contactMethods)) { - this.contactMethods = contact.contactMethods.filter((method) => { - return ( - method && - typeof method === "object" && - typeof method.label === "string" && - typeof method.type === "string" && - typeof method.value === "string" - ); - }); - } else { - this.contactMethods = []; - } + this.contactMethods = contact.contactMethods || []; } else { this.notify.error( `${NOTIFY_CONTACT_NOT_FOUND.message} ${contactDid}`,