Skip to content

Commit

Permalink
fix: use value of currentUser ref in useIsCurrentUserLoaded (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
fooooooooooooooo committed Apr 9, 2023
1 parent 67dbffd commit d1196d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function useCurrentUser(name?: string) {
*/
export function useIsCurrentUserLoaded(name?: string) {
const currentUser = useCurrentUser(name)
return computed(() => currentUser !== undefined)
return computed(() => currentUser.value !== undefined)
}

/**
Expand Down

0 comments on commit d1196d6

Please sign in to comment.