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

Title shows (0) moves made which isn't that helpful #2775

Open
frostburn opened this issue Aug 10, 2024 · 0 comments
Open

Title shows (0) moves made which isn't that helpful #2775

frostburn opened this issue Aug 10, 2024 · 0 comments

Comments

@frostburn
Copy link

Description of the bug
In correspondence games it's possible for the title to change to "(0) moves made" which unnecessarily draws attention to an unattended browser tab.

To Reproduce
Steps to reproduce the behavior:

  1. Go to an on ongoing correspondence game
  2. Click to make a move
  3. Leave tab open for some time
  4. Title changes to "(0) moves made"

Expected behavior
The title doesn't change until the opponent actually makes a move.

Desktop:

  • OS: Linux (Ubuntu)
  • Browser: Chrome
  • Version: 127.0.6533.99 (Official Build) (64-bit)

Possible leads on how to fix the issue
In Game.tsx check that the diff is non-zero before updating the dynamic title.

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

No branches or pull requests

1 participant