Skip to content

Commit

Permalink
Merge pull request #274 from ORNL-AMO/issue-270
Browse files Browse the repository at this point in the history
Issue 270 - Make EOG report viewable at lose page
  • Loading branch information
nbintertech authored Mar 15, 2024
2 parents 11a8174 + 523229a commit 89ca92e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/PageControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ PageControls[Pages.loseScreen] = newAppPageDialogControl({
title: 'Sorry...',
text: (state) => `Sorry, looks like you didn't succeed at decarbonizing {${state.companyName}} by 50%. You got to {${(state.trackedStats.carbonSavingsPercent * 100).toFixed(1)}%} in 10 years. Try again?`,
buttons: [
{
text: 'View Report',
variant: 'text',
size: 'large',
onClick: function () {
return Pages.endGameReport;
}
},
{
text: 'Try again',
variant: 'text',
Expand Down

0 comments on commit 89ca92e

Please sign in to comment.