We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1694527 commit 3cc0361Copy full SHA for 3cc0361
src/components/billing/pricing/pricing-card.tsx
@@ -7,7 +7,6 @@ import {
7
CardTitle,
8
} from "@/components/ui/card";
9
import type { PricingPlanInterval } from "@/prisma/enums";
10
-import type { ComponentProps } from "react";
11
12
interface PricingCardProps extends Omit<ButtonProps, "children"> {
13
title: string;
@@ -54,11 +53,9 @@ export function PricingCard({
54
53
<CardFooter>
55
<Button {...rest}>
56
{subscribedUnitAmount
57
- ? unitAmount < subscribedUnitAmount
58
- ? "Downgrade Plan"
59
- : unitAmount > subscribedUnitAmount
60
- ? "Upgrade Plan"
61
- : "Manage Current Plan"
+ ? unitAmount === subscribedUnitAmount
+ ? "Manage Current Plan"
+ : "Change Plan"
62
: "Subscribe"}
63
</Button>
64
</CardFooter>
0 commit comments