From c0e740fe3d68c963aa4eed83920caeabf00178f2 Mon Sep 17 00:00:00 2001 From: Rebecca Hsieh Date: Tue, 29 Oct 2024 12:07:45 -0700 Subject: [PATCH] Member Page delete success modal --- src/registrar/assets/js/get-gov.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/registrar/assets/js/get-gov.js b/src/registrar/assets/js/get-gov.js index f499098bb..01a1b8d34 100644 --- a/src/registrar/assets/js/get-gov.js +++ b/src/registrar/assets/js/get-gov.js @@ -92,13 +92,11 @@ function addModal(member_email, member_id, num_domains, submit_delete_url, wrapp let modalHeading = ''; let modalDescription = ''; - console.log("member_id is", member_id) - - if (num_domains === 0){ + if (num_domains == 0){ modalHeading = `Are you sure you want to delete ${member_email}?`; modalDescription = `They will no longer be able to access this organization. \n This action cannot be undone.`; - } else if (num_domains === 1) { + } else if (num_domains == 1) { modalHeading = `Are you sure you want to delete ${member_email}?`; modalDescription = `${member_email} currently manages ${num_domains} domain in the organization. \n Removing them from the organization will remove all of their domains. They will no longer be able to \n