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

Fixed logout issue #747

Merged
merged 2 commits into from
Nov 30, 2023
Merged

Fixed logout issue #747

merged 2 commits into from
Nov 30, 2023

Conversation

aktoboy
Copy link
Contributor

@aktoboy aktoboy commented Nov 30, 2023

No description provided.

@@ -44,8 +44,15 @@ export default function Header() {

const handleLogOut = async () => {
storeAccessToken(null)
await api.logout()
navigate("/login")
await api.logout().then(res => {
Copy link
Contributor

Choose a reason for hiding this comment

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

why use await when there is then

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@aktoboy aktoboy merged commit a9dbe96 into master Nov 30, 2023
8 checks passed
ayushaga14 pushed a commit that referenced this pull request Jan 3, 2024
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.

2 participants