Fix an error when logging out was causing state issues
This commit is contained in:
@@ -10,7 +10,7 @@ export const useUserStore = defineStore(
|
||||
const authStore = useAuthStore()
|
||||
const authWatcher = watch(
|
||||
() => authStore.isAuthenticated,
|
||||
async (newValue, oldValue) => {
|
||||
async (newValue) => {
|
||||
if (newValue) {
|
||||
await fetchCurrentUserProfile()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user