Skip to content

Commit 3ac1e07

Browse files
committed
fix: remove authError from useGitHubAuth destructure — always undefined
1 parent e7b8fc8 commit 3ac1e07

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/pages/Tracker/Tracker.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ const Home: React.FC = () => {
5555
setUsername,
5656
token,
5757
setToken,
58-
error: authError,
5958
getOctokit,
6059
} = useGitHubAuth();
6160

@@ -324,9 +323,9 @@ const Home: React.FC = () => {
324323
</FormControl>
325324
</Box>
326325

327-
{(authError || dataError) && (
326+
{dataError && (
328327
<Alert severity="error" sx={{ mb: 3 }}>
329-
{authError || dataError}
328+
{dataError}
330329
</Alert>
331330
)}
332331

0 commit comments

Comments
 (0)