From 1afd1eb328f2ab9c089d97df0d60966858ffa174 Mon Sep 17 00:00:00 2001 From: Arun Philip Date: Sat, 21 Sep 2024 01:18:54 -0400 Subject: [PATCH] fix typo eamilMD5 -> emailMD5 --- src/skin/js/PersonView.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/skin/js/PersonView.js b/src/skin/js/PersonView.js index 39faa2d5a0..52d7f9a951 100644 --- a/src/skin/js/PersonView.js +++ b/src/skin/js/PersonView.js @@ -202,10 +202,10 @@ $(document).ready(function () { "/api/mailchimp/person/" + window.CRM.currentPersonID, success: function (data, status, xmlHttpReq) { - for (emailData of data) { + for (const emailData of data) { let htmlVal = ""; - let eamilMD5 = emailData["emailMD5"]; - for (list of emailData["list"]) { + let emailMD5 = emailData["emailMD5"]; + for (const list of emailData["list"]) { let listName = list["name"]; let listStatus = list["status"]; if (listStatus != 404) { @@ -227,7 +227,7 @@ $(document).ready(function () { if (htmlVal === "") { htmlVal = i18next.t("Not Subscribed "); } - $("#" + eamilMD5).html(htmlVal); + $("#" + emailMD5).html(htmlVal); } }, });