diff --git a/src/Projects.tsx b/src/Projects.tsx index ae76842..4a7ac9d 100644 --- a/src/Projects.tsx +++ b/src/Projects.tsx @@ -666,8 +666,8 @@ Projects[Pages.compressedAirSystemImprovemnt] = new ProjectControl({ }, utilityRebateValue: 5000, recapSurprises: [{ - title: 'Uh oh - Replacing the compressors did not save as much electricity as estimated!', - text: 'Uh oh - Replacing the compressors did not save as much electricity as estimated! Only 2,000,000 kWh was saved.', + title: 'Uh oh - Replacing the compressors did not save as much electricity as estimated! ', + text: 'While replacing old compressors, you only saved 2,000,000 kWh instead of the estimated 2,250,000 kWh', className: 'year-recap-negative-surprise', avatar: { icon: , diff --git a/src/components/YearRecap.tsx b/src/components/YearRecap.tsx index 93d31b2..ab9184b 100644 --- a/src/components/YearRecap.tsx +++ b/src/components/YearRecap.tsx @@ -787,7 +787,7 @@ export class YearRecap extends React.Component { projectRecapCards.push( ...project.recapSurprises.map((projectSurprise, index) => { return ( - this.getSurpriseEventCard(projectSurprise, project.title, project.shortTitle, index) + this.getSurpriseEventCard(projectSurprise, project.title, index) ); }) ); @@ -799,8 +799,8 @@ export class YearRecap extends React.Component { /** * Add card for negative/positive surprises. */ - getSurpriseEventCard(surprise: RecapSurprise, title: string, subHeader: string | undefined, index?: number): JSX.Element { - let keyId = index !== undefined ? index : title; + getSurpriseEventCard(surprise: RecapSurprise, projectTitle: string, index?: number): JSX.Element { + let keyId = index !== undefined ? index : projectTitle; return @@ -812,8 +812,8 @@ export class YearRecap extends React.Component { {surprise.avatar.icon} } - title={title} - subheader={subHeader} + title={surprise.title} + subheader={projectTitle} />