From ecdfd9aacaf6a57f0dcecdbe6d45cdffc82f0363 Mon Sep 17 00:00:00 2001 From: Ivonne Hernandez Date: Fri, 13 Oct 2023 11:49:56 -0600 Subject: [PATCH] Update and use the preschoolProgramCategory var --- src/Components/Results/Results.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Results/Results.tsx b/src/Components/Results/Results.tsx index 4193d74ac..ee47e3690 100644 --- a/src/Components/Results/Results.tsx +++ b/src/Components/Results/Results.tsx @@ -156,7 +156,7 @@ const Results = () => { //this is only to cap the totalVisibleRowDollarValue for preschool const typedFiltCategory = filt.category as GridFilterItem; - if (typedFiltCategory.value === 'Child Care, Preschool, and Youth' && updatedTotalEligibleDollarValue > 8640) { + if (typedFiltCategory.value === preschoolProgramCategory && updatedTotalEligibleDollarValue > 8640) { setTotalVisibleRowDollarValue(8640); return; } @@ -213,7 +213,7 @@ const Results = () => { }); }; - const preschoolProgramCategory = 'Child Care, Preschool, and Youth'; + const preschoolProgramCategory = 'Child Care, Youth, and Education'; const categoryValues = (programs: Program[]) => { const preschoolPrograms = { numOfPreSchoolPrograms: 0, totalEstVal: 0 }; //i=0 => num of preschool prog, i=1 => prog.est.value const categoryValues: { [key: string]: number } = {};