mirror of
https://github.com/fosrl/pangolin.git
synced 2026-10-02 18:59:06 +02:00
Show the right tier in the banner
This commit is contained in:
@@ -524,6 +524,7 @@ export default function BillingPage() {
|
||||
};
|
||||
|
||||
const currentPlanId = getCurrentPlanId();
|
||||
const currentPlan = planOptions.find((p) => p.id === currentPlanId);
|
||||
|
||||
const visiblePlanOptions = planOptions.filter(
|
||||
(plan) => plan.id !== "home" || currentPlanId === "home"
|
||||
@@ -873,10 +874,8 @@ export default function BillingPage() {
|
||||
{/* Trial Banner */}
|
||||
{isTrial && (
|
||||
<TrialBillingBanner
|
||||
tierName={currentPlan?.name ?? "Business"}
|
||||
onUpgrade={() => {
|
||||
const currentPlan = planOptions.find(
|
||||
(p) => p.id === currentPlanId
|
||||
);
|
||||
if (currentPlan?.tierType) {
|
||||
handleStartSubscription(currentPlan.tierType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user