Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the what's new announcement logic #48

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Change the what's new announcement logic #48

merged 1 commit into from
Sep 9, 2024

Conversation

skedwards88
Copy link
Owner

The previous method of determining whether to display the 'WhatsNew' component relied on checking the date that the player last visited the game. However, because of the way PWAs are updated, this date would be stored before the logic to display the announcement was loaded, so the announcement would never display. This PR changes the logic to store a boolean to indicate whether the player say the announcement instead.

@skedwards88 skedwards88 merged commit 0b27240 into main Sep 9, 2024
1 check passed
@skedwards88 skedwards88 deleted the whatsnew branch September 9, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant