chore: add stale time for billing check (#23907)
Co-authored-by: Alex van Andel <me@alexvanandel.com>
This commit is contained in:
co-authored by
Alex van Andel
parent
eaf695824b
commit
616e4c4908
@@ -14,6 +14,7 @@ export const useCheckTeamBilling = (teamId?: number | null, isPlatformTeam?: boo
|
||||
return data.data;
|
||||
},
|
||||
enabled: !!teamId && !!isPlatformTeam,
|
||||
staleTime: 5000,
|
||||
});
|
||||
|
||||
return isTeamBilledAlready;
|
||||
|
||||
Reference in New Issue
Block a user