Fixed UI not showing grandfathered tracts correctly on side panel

This commit is contained in:
Carlos Felix 2024-12-13 14:55:15 -05:00 committed by Carlos Felix
commit ddf1544d5d

View file

@ -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) {