From 4e790ac0593ce54303bd00f84364e3917413b281 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 15 Apr 2026 09:33:55 +0800 Subject: [PATCH] fix: hide unknown subscription quota tiers from provider card UI --- src/components/SubscriptionQuotaFooter.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SubscriptionQuotaFooter.tsx b/src/components/SubscriptionQuotaFooter.tsx index fce6ea09e..fd1ebca11 100644 --- a/src/components/SubscriptionQuotaFooter.tsx +++ b/src/components/SubscriptionQuotaFooter.tsx @@ -205,7 +205,7 @@ export const SubscriptionQuotaView: React.FC = ({ } // 成功获取数据 - const tiers = quota.tiers || []; + const tiers = (quota.tiers || []).filter((tier) => tier.name in TIER_I18N_KEYS); if (tiers.length === 0) return null; // ── inline 模式:紧凑两行显示 ──