mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-30 14:12:00 +03:00
fix(core): revalidate subscription info when open ai usage panel (#6591)
This commit is contained in:
commit
c83d090282
@ -24,6 +24,10 @@ export const AIUsagePanel = () => {
|
||||
);
|
||||
const subscriptionService = useService(SubscriptionService);
|
||||
const aiSubscription = useLiveData(subscriptionService.subscription.ai$);
|
||||
useEffect(() => {
|
||||
// revalidate latest subscription status
|
||||
subscriptionService.subscription.revalidate();
|
||||
}, [subscriptionService]);
|
||||
const quotaService = useService(UserQuotaService);
|
||||
useEffect(() => {
|
||||
quotaService.quota.revalidate();
|
||||
|
Loading…
Reference in New Issue
Block a user