Skip to content

Commit

Permalink
fix: missing change
Browse files Browse the repository at this point in the history
  • Loading branch information
sajald77 committed Mar 9, 2023
1 parent cb61f00 commit 569d255
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/context/auth.tsx
Expand Up @@ -77,15 +77,17 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => {
},
})

const [queryFollowedProjects, { loading: loadingUserProjectFollows }] =
useLazyQuery<{ me: User }>(ME_PROJECT_FOLLOWS, {
const [queryFollowedProjects] = useLazyQuery<{ me: User }>(
ME_PROJECT_FOLLOWS,
{
fetchPolicy: 'network-only',
onCompleted(data) {
if (data?.me?.projectFollows) {
setFollowedProjects(data?.me.projectFollows as Project[])
}
},
})
},
)

const {
isOpen: loginIsOpen,
Expand Down

0 comments on commit 569d255

Please sign in to comment.