fix: Lint Errors

This commit is contained in:
2023-11-11 16:31:29 +01:00
parent 5892921a7c
commit d9955a64d4
7 changed files with 35 additions and 19 deletions

View File

@@ -4,7 +4,9 @@ export default defineNuxtPlugin(async () => {
const user = useUser()
// Skip if already initialized on server
if (user.value !== undefined) { return }
if (user.value !== undefined) {
return
}
user.value = await fetchCurrentUser()
})

View File

@@ -2,7 +2,9 @@ import { FetchError } from 'ofetch'
export default defineNuxtPlugin(async (nuxtApp) => {
nuxtApp.hook('vue:error', (error) => {
if (!(error instanceof FetchError)) { throw error }
if (!(error instanceof FetchError)) {
throw error
}
const status = error.response?.status ?? -1