Skip to content

Commit 4c82373

Browse files
committed
fix pricing table
1 parent 00c6995 commit 4c82373

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

apps/dashboard/components/autumn/pricing-table.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ function getPlanIcon(planId: string) {
5555
function getNewFeaturesForPlan(planId: string): GatedFeatureId[] {
5656
const plan = planId as PlanId;
5757
const planFeatures = PLAN_FEATURES[plan];
58-
if (!planFeatures) return [];
58+
if (!planFeatures) {
59+
return [];
60+
}
5961

6062
if (plan === PLAN_IDS.FREE) {
6163
return Object.entries(planFeatures)
@@ -159,12 +161,7 @@ export default function PricingTable({
159161
}
160162

161163
const filteredProducts =
162-
products?.filter(
163-
(p) =>
164-
p.id !== "free" &&
165-
p.id !== "verification_fee" &&
166-
!(p as Product & { is_add_on?: boolean }).is_add_on
167-
) ?? [];
164+
products?.filter((p) => ["hobby", "pro", "scale"].includes(p.id)) ?? [];
168165

169166
return (
170167
<PricingTableContext.Provider

0 commit comments

Comments
 (0)