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

Fix auth not working in Course page #466

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions client/src/modules/Course/Components/Course.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

import ReviewModal from './ReviewModal'

enum PageStatus {

Check warning on line 29 in client/src/modules/Course/Components/Course.tsx

View workflow job for this annotation

GitHub Actions / build

'PageStatus' is already declared in the upper scope on line 29 column 6

Check warning on line 29 in client/src/modules/Course/Components/Course.tsx

View workflow job for this annotation

GitHub Actions / build

'PageStatus' is defined but never used

Check warning on line 29 in client/src/modules/Course/Components/Course.tsx

View workflow job for this annotation

GitHub Actions / build

'PageStatus' is already declared in the upper scope on line 29 column 6
Loading,

Check warning on line 30 in client/src/modules/Course/Components/Course.tsx

View workflow job for this annotation

GitHub Actions / build

'Loading' is already declared in the upper scope on line 12 column 8

Check warning on line 30 in client/src/modules/Course/Components/Course.tsx

View workflow job for this annotation

GitHub Actions / build

'Loading' is defined but never used
Success,
Error,
}
Expand All @@ -40,6 +40,8 @@
const [pageStatus, setPageStatus] = useState<PageStatus>(PageStatus.Loading)
const [scrolled, setScrolled] = useState(false)

const { isLoggedIn, token } = useAuthOptionalLogin()

/**
* Arrow functions for sorting reviews
*/
Expand Down
Loading