fix copilot review issue

This commit is contained in:
Elysia
2026-03-10 23:59:39 +08:00
parent b41a8ca93f
commit 36cda57c81
3 changed files with 33 additions and 16 deletions

View File

@@ -1151,6 +1151,7 @@ const handleResetQuota = (subscription: UserSubscription) => {
const confirmResetQuota = async () => {
if (!resettingSubscription.value) return
if (resettingQuota.value) return
resettingQuota.value = true
try {
await adminAPI.subscriptions.resetQuota(resettingSubscription.value.id, { daily: true, weekly: true })