-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
🐛 Bug Report: Fix the routing of the "Go to the leaderboard" button
Description
After completing the Sudoku, clicking the "Go to the leaderboard" button does not route the user correctly to the leaderboard page. Instead of being redirected to see their ranking and completion status, the navigation fails or points elsewhere.
Problem
- Users expect to be redirected to the Leaderboard page immediately after finishing a Sudoku.
- Currently, the routing logic is broken/misconfigured.
- This reduces the usability of the game since players cannot easily see where they stand.
Expected Behavior
- Once the player completes the Sudoku puzzle and clicks "Go to the leaderboard", they should be routed to the Leaderboard view without errors.
Steps to Reproduce
- Complete any Sudoku puzzle.
- Click the "Go to the leaderboard" button.
- Observe that the routing does not correctly navigate to the leaderboard page.
Possible Fix
- Check and update the routing logic in
SudokuMasterApp.jsx. - Ensure the leaderboard path is correctly defined in your router configuration.
- Verify that the button’s
onClickor navigation handler points to the correct route.
Additional Context
- Issue might be related to incorrect
useNavigateusage orRoutepath mismatch. - Double-check route definitions in
App.jsxor wherever routing is handled.
Reactions are currently unavailable