Skip to content

Commit

Permalink
Update and use the preschoolProgramCategory var
Browse files Browse the repository at this point in the history
  • Loading branch information
ivonne-hernandez committed Oct 13, 2023
1 parent 8705a83 commit ecdfd9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Results/Results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 } = {};
Expand Down

0 comments on commit ecdfd9a

Please sign in to comment.