Skip to content

Conversation

@DylanDevelops
Copy link
Owner

This pull request includes several changes to enhance the user experience and improve code readability in the game and play components. The most important changes include adding user checks before allowing certain actions, updating the UI to reflect user status, and importing necessary icons.

User experience improvements:

  • app/(gameplay)/game/_context/GameContext.tsx: Modified the fetchLevels function to check if the user exists before proceeding with daily challenge logic. This prevents errors when the user is not logged in.
  • app/(main)/play/page.tsx: Updated the UI to show a CalendarX icon and a message prompting users to create an account if they are not logged in when attempting to access the daily challenge.

Code readability and imports:

image

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

@divinewton divinewton merged commit 9ae69c6 into main Apr 9, 2025
4 checks passed
@divinewton divinewton deleted the no-daily-challenge-when-no-account branch April 9, 2025 22:10
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.

3 participants