Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Update docs/content/3.api/3.utils/abort-navigation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala committed Aug 25, 2022
1 parent 6f8b2be commit 237d3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/3.api/3.utils/abort-navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default defineNuxtRouteMiddleware((to, from) => {
const user = useState('user')

if (!user.value.isAuthorized) {
abortNavigation()
return abortNavigation()
}

return navigateTo('/edit-post')
Expand Down

0 comments on commit 237d3fb

Please sign in to comment.