mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
Merge pull request #126 from nyatoru/fix/codex-plam
Approved: Clean, well-scoped change that correctly separates Plus/Paid tier from Pro in ProviderLimits.
This commit is contained in:
@@ -27,6 +27,7 @@ const TIER_FILTERS = [
|
||||
{ key: "business", label: "Business" },
|
||||
{ key: "ultra", label: "Ultra" },
|
||||
{ key: "pro", label: "Pro" },
|
||||
{ key: "plus", label: "Plus" },
|
||||
{ key: "free", label: "Free" },
|
||||
{ key: "unknown", label: "Unknown" },
|
||||
];
|
||||
|
||||
@@ -229,15 +229,14 @@ export function normalizePlanTier(plan) {
|
||||
return { key: "ultra", label: "Ultra", variant: "success", rank: 4, raw };
|
||||
}
|
||||
|
||||
if (
|
||||
upper.includes("PRO") ||
|
||||
upper.includes("PLUS") ||
|
||||
upper.includes("PREMIUM") ||
|
||||
upper.includes("PAID")
|
||||
) {
|
||||
if (upper.includes("PRO") || upper.includes("PREMIUM")) {
|
||||
return { key: "pro", label: "Pro", variant: "primary", rank: 3, raw };
|
||||
}
|
||||
|
||||
if (upper.includes("PLUS") || upper.includes("PAID")) {
|
||||
return { key: "plus", label: "Plus", variant: "secondary", rank: 2, raw };
|
||||
}
|
||||
|
||||
if (
|
||||
upper.includes("FREE") ||
|
||||
upper.includes("INDIVIDUAL") ||
|
||||
|
||||
Reference in New Issue
Block a user