Skip to content

Commit

Permalink
Merge pull request #321 from ORNL-AMO/issue-320
Browse files Browse the repository at this point in the history
Issue 320
  • Loading branch information
rhernandez-intertech authored Apr 3, 2024
2 parents 7f56711 + 9ddae34 commit dc44658
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ProjectControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,9 @@ export class ProjectControl implements ProjectControlParams {
newTrackedStats.carbonEmissions = calculateEmissions(newTrackedStats);
}
nextState.selectedProjectsForComparison = removeSelectedForCompare(state);
if (nextState.selectedProjectsForComparison.length === 0) {
nextState.isCompareDialogOpen = false;
}
}

newTrackedStats = setCarbonEmissionsAndSavings(newTrackedStats, this.state.defaultTrackedStats);
Expand Down

0 comments on commit dc44658

Please sign in to comment.