Repository navigation
Fix duplicate Current plan label on pricing card #12388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
fc56e89
5ee5051
b3bff06
f1ab8a6
5d19c32
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -234,13 +234,10 @@ export default async function PricingPage({ | |
| ) : null | ||
| } | ||
| > | ||
| {isProCurrent ? ( | ||
| <div className="space-y-2"> | ||
| <DisabledButton>{t("currentPlan")}</DisabledButton> | ||
| <SecondaryLink href="/api/billing/portal"> | ||
| {t("manageBilling")} | ||
| </SecondaryLink> | ||
| </div> | ||
| {isProCurrent && canManageBilling ? ( | ||
| <SecondaryLink href="/api/billing/portal"> | ||
| {t("manageBilling")} | ||
| </SecondaryLink> | ||
| ) : canManageBilling || isMax ? ( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Do not render checkout for a current unmanaged Pro account. When Proposed fix- {isProCurrent && canManageBilling ? (
- <SecondaryLink href="/api/billing/portal">
- {t("manageBilling")}
- </SecondaryLink>
- ) : canManageBilling || isMax ? (
+ {isProCurrent ? (
+ canManageBilling ? (
+ <SecondaryLink href="/api/billing/portal">
+ {t("manageBilling")}
+ </SecondaryLink>
+ ) : null
+ ) : canManageBilling || isMax ? (🤖 Prompt for AI Agents |
||
| <SecondaryLink href="/api/billing/portal"> | ||
| {t("manageBilling")} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.