Skip to content

Commit

Permalink
SWQA-1905: Disabled revisit screen
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronCT committed Aug 7, 2024
1 parent 60899ea commit 609ac27
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions platforms/html5/src/summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ class SummaryAPI {
onClose?: () => void
) {
const isSubscriber = await data.isSubscriber();
const currentDay = await data.getCurrentDay();
const currentDate = utils.getDate(currentDay.day);
const hasPlayedToday = await data.hasPlayedDay(currentDay.day);
// const currentDay = await data.getCurrentDay();
// const currentDate = utils.getDate(currentDay.day);
// const hasPlayedToday = await data.hasPlayedDay(currentDay.day);

const gameStreak = await data.getDailyGameStreak();
stats.unshift(
Expand Down Expand Up @@ -342,6 +342,7 @@ class SummaryAPI {
/>, rootEl);
};

/*
const showRevisit = () => {
render(<RevisitComponent
resultHtml={resultHtml}
Expand All @@ -352,6 +353,7 @@ class SummaryAPI {
onShowStats={showSummary}
/>, rootEl);
};
*/

const unmount = () => {
this.unmount();
Expand All @@ -360,11 +362,15 @@ class SummaryAPI {
};

return new Promise<void>((resolve) => {
/*
if (hasPlayedToday) {
showRevisit();
} else {
showSummary();
}
*/

showSummary();
document.body.classList.add('swag-dialog-open');
resolve();
});
Expand Down

0 comments on commit 609ac27

Please sign in to comment.