Skip to content

Commit

Permalink
Merge pull request #260 from ORNL-AMO/issue-206
Browse files Browse the repository at this point in the history
Fix implemented PPA's always apply costs
  • Loading branch information
nbintertech authored Mar 13, 2024
2 parents ecea5d1 + b4291bb commit bdd1c91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Financing.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { ImplementedProject, ProjectControl, RecapSurprise } from './ProjectControl';
import Projects from './Projects';
import type { TrackedStats } from './trackedStats';
import AttachMoneyIcon from '@mui/icons-material/AttachMoney';
import React from 'react';
Expand Down Expand Up @@ -275,6 +276,8 @@ export function isProjectFullyFunded(project: ImplementedProject, stats: Tracked
// if 2 year take the later year
let currentGameYear = stats.gameYearInterval > 1? stats.gameYearDisplayOffset + 1 : stats.currentGameYear;
return currentGameYear >= financingPayoffYear;
} else if (Projects[project.page].isPPA) {
return false;
} else {
return true;
}
Expand Down

0 comments on commit bdd1c91

Please sign in to comment.