Skip to content

Commit

Permalink
Make EOG report viewable at lose page
Browse files Browse the repository at this point in the history
  • Loading branch information
nbintertech committed Mar 15, 2024
1 parent 6b3c729 commit 523229a
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 523229a

Please sign in to comment.