📜 Description
On the Tracker page (/track), the code tries to display an error message for authentication failures:
tsx
{(authError || dataError) && (
<Alert severity="error" sx={{ mb: 3 }}>
{authError || dataError}
)}
However, useGitHubAuth does not return an error property. It only returns:
ts
{ username, setUsername, token, setToken, getOctokit }
Therefore authError is always undefined, and the alert will never show any auth‑related error – even when the user enters an invalid token or the GitHub API rejects the request.
All real errors are being passed through dataError from useGitHubData, which is not correct because dataError is intended for data‑fetching problems, not authentication failures.
What browsers are you seeing the problem on?
No response
📃 Relevant Screenshots (Links)
No response
📜 Description
On the Tracker page (/track), the code tries to display an error message for authentication failures:
tsx
{(authError || dataError) && (
<Alert severity="error" sx={{ mb: 3 }}>
{authError || dataError}
)}
However, useGitHubAuth does not return an error property. It only returns:
ts
{ username, setUsername, token, setToken, getOctokit }
Therefore authError is always undefined, and the alert will never show any auth‑related error – even when the user enters an invalid token or the GitHub API rejects the request.
All real errors are being passed through dataError from useGitHubData, which is not correct because dataError is intended for data‑fetching problems, not authentication failures.
What browsers are you seeing the problem on?
No response
📃 Relevant Screenshots (Links)
No response