mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
fix: hide unknown subscription quota tiers from provider card UI
This commit is contained in:
@@ -205,7 +205,7 @@ export const SubscriptionQuotaView: React.FC<SubscriptionQuotaViewProps> = ({
|
||||
}
|
||||
|
||||
// 成功获取数据
|
||||
const tiers = quota.tiers || [];
|
||||
const tiers = (quota.tiers || []).filter((tier) => tier.name in TIER_I18N_KEYS);
|
||||
if (tiers.length === 0) return null;
|
||||
|
||||
// ── inline 模式:紧凑两行显示 ──
|
||||
|
||||
Reference in New Issue
Block a user