Skip to content

Commit 3cc0361

Browse files
committed
chore: fix wording
1 parent 1694527 commit 3cc0361

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/components/billing/pricing/pricing-card.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
CardTitle,
88
} from "@/components/ui/card";
99
import type { PricingPlanInterval } from "@/prisma/enums";
10-
import type { ComponentProps } from "react";
1110

1211
interface PricingCardProps extends Omit<ButtonProps, "children"> {
1312
title: string;
@@ -54,11 +53,9 @@ export function PricingCard({
5453
<CardFooter>
5554
<Button {...rest}>
5655
{subscribedUnitAmount
57-
? unitAmount < subscribedUnitAmount
58-
? "Downgrade Plan"
59-
: unitAmount > subscribedUnitAmount
60-
? "Upgrade Plan"
61-
: "Manage Current Plan"
56+
? unitAmount === subscribedUnitAmount
57+
? "Manage Current Plan"
58+
: "Change Plan"
6259
: "Subscribe"}
6360
</Button>
6461
</CardFooter>

0 commit comments

Comments
 (0)