Skip to content

Commit

Permalink
Fix query falsy value
Browse files Browse the repository at this point in the history
  • Loading branch information
255kb committed Nov 6, 2023
1 parent a83255a commit 4ba8b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/queries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const useCurrentSubscriptionLinks = (user: User) => {
}>({
queryKey: ['currentSubscriptionLinks'],
refetchOnMount: false,
enabled: auth.isAuth && user?.plan !== Plans.FREE,
enabled: auth.isAuth && !!user && user.plan !== Plans.FREE,
queryFn: async () => {
const token = await auth.getIdToken();

Expand Down

0 comments on commit 4ba8b17

Please sign in to comment.