fix: align landing page prices with backend, pass billing mode in URL to /pricing
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 1m50s

This commit is contained in:
2026-05-31 21:54:15 +02:00
parent b067be2ff7
commit fbe39d81e1
2 changed files with 5 additions and 4 deletions

View File

@@ -276,7 +276,8 @@ export default function PricingPage() {
const router = useRouter();
const searchParams = useSearchParams();
const planFromUrl = searchParams.get("plan");
const [isYearly, setIsYearly] = useState(false);
const billingFromUrl = searchParams.get("billing");
const [isYearly, setIsYearly] = useState(billingFromUrl === "yearly");
const [plans, setPlans] = useState<Plan[]>(STATIC_PLANS);
const [credits, setCredits] = useState<CreditPackage[]>(STATIC_CREDITS);
const [currentPlan, setCurrentPlan] = useState<string | null>(null);