Skip to content

Commit baa5042

Browse files
authored
Fix stale pending referral count when switching workspaces (dubinc#3640)
1 parent 1c3dcb2 commit baa5042

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/lib/swr/use-program-referrals-count.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function useProgramReferralsCount<T = number>({
3434
);
3535

3636
return {
37-
data,
37+
data: enabled ? data : undefined,
3838
error,
3939
loading: isLoading,
4040
};

0 commit comments

Comments
 (0)