From ddf1544d5d438ab506cffd02da0a86d4fa5ff536 Mon Sep 17 00:00:00 2001 From: Carlos Felix <63804190+carlosfelix2@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:55:15 -0500 Subject: [PATCH] Fixed UI not showing grandfathered tracts correctly on side panel --- .../components/PrioritizationCopy/PrioritizationCopy.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/components/PrioritizationCopy/PrioritizationCopy.tsx b/client/src/components/PrioritizationCopy/PrioritizationCopy.tsx index 19fffda7..f526c70b 100644 --- a/client/src/components/PrioritizationCopy/PrioritizationCopy.tsx +++ b/client/src/components/PrioritizationCopy/PrioritizationCopy.tsx @@ -47,8 +47,10 @@ const PrioritizationCopy = }:IPrioritizationCopy) => { let prioCopyRendered; + if (isGrandfathered) { + prioCopyRendered = EXPLORE_COPY.PRIORITIZATION_COPY.PRIO_GRANDFATHERED_LI; // if 1 - if (totalCategoriesPrioritized === 0) { + } else if (totalCategoriesPrioritized === 0) { // if 1-1 if (isAdjacencyThreshMet && isAdjacencyLowIncome) { prioCopyRendered = EXPLORE_COPY.PRIORITIZATION_COPY.PRIO_SURR_LI; @@ -59,10 +61,8 @@ const PrioritizationCopy = } else if (isAdjacencyThreshMet && !isAdjacencyLowIncome) { // if 1-2-1 if ( tribalCountAK === null && tribalCountUS === null) { - if (isGrandfathered) { - prioCopyRendered = EXPLORE_COPY.PRIORITIZATION_COPY.PRIO_GRANDFATHERED_LI; // if 1-2-1-1 - } else if (percentTractTribal === null) { + if (percentTractTribal === null) { prioCopyRendered = EXPLORE_COPY.PRIORITIZATION_COPY.NOT_PRIO_SURR_LI; // if 1-2-1-2 } else if (percentTractTribal === 0) {