From 3ddd3aa55760837e81eb8ddb6007a4f5aade5017 Mon Sep 17 00:00:00 2001 From: pravingv Date: Tue, 28 Jul 2026 15:17:16 -0400 Subject: [PATCH] change twitter to x in search text --- src/js/utils/ballotSearchPriority.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/utils/ballotSearchPriority.jsx b/src/js/utils/ballotSearchPriority.jsx index f8c2d927be..927a7e7095 100644 --- a/src/js/utils/ballotSearchPriority.jsx +++ b/src/js/utils/ballotSearchPriority.jsx @@ -69,12 +69,12 @@ export default function ballotSearchPriority (originalString, item, ignoreDescri if (!ignoreDescriptionFields && countMatches(searchNeedleString, candidate.twitter_description)) { oneWordScore += countMatches(searchNeedleString, candidate.twitter_description); foundInThisCandidate = true; - if (!candidateDetailsArray.includes('Twitter description')) candidateDetailsArray.push('Twitter description'); + if (!candidateDetailsArray.includes('Twitter description')) candidateDetailsArray.push('X description'); } if (countMatches(searchNeedleString, candidate.twitter_handle)) { oneWordScore += countMatches(searchNeedleString, candidate.twitter_handle) * 2; foundInThisCandidate = true; - if (!candidateDetailsArray.includes('Twitter handle')) candidateDetailsArray.push('Twitter handle'); + if (!candidateDetailsArray.includes('Twitter handle')) candidateDetailsArray.push('X handle'); } if (countMatches(searchNeedleString, candidate.party)) { oneWordScore += countMatches(searchNeedleString, candidate.party) * 2;