From 6223c88c3fc0b9c1c0edf33406b4a6450159ab40 Mon Sep 17 00:00:00 2001 From: Eric Jackson Date: Mon, 4 Nov 2024 17:01:58 -0500 Subject: [PATCH] Fixed unneeded call to toLocalLowerCase --- packages/server/scripts/update_defendants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/scripts/update_defendants.js b/packages/server/scripts/update_defendants.js index f74ba4d..280fa88 100644 --- a/packages/server/scripts/update_defendants.js +++ b/packages/server/scripts/update_defendants.js @@ -33,7 +33,7 @@ async function updateDefendants() { suffix: d.suffix, exact: true, }, null); - const match = matches.filter((itm) => (`${itm.defendant}.${itm.sex}.${itm.race}`.toLocaleLowerCase()) === d.long_id.toLocaleLowerCase()); + const match = matches.filter((itm) => (`${itm.defendant}.${itm.sex}.${itm.race}`.toLowerCase()) === d.long_id.toLowerCase()); let updateObject; let nCases = 0; if (match.length > 0) nCases = match[0].cases.length;