diff --git a/src/components/Dashboard.tsx b/src/components/Dashboard.tsx index 3c9e5438..812afe2f 100644 --- a/src/components/Dashboard.tsx +++ b/src/components/Dashboard.tsx @@ -55,12 +55,13 @@ export function Dashboard({ products }: DashboardProps): React.ReactElement { {productName(subscription?.prices?.products)} - {subscription?.cancel_at && ( - - ⚠️ Plan ends on{" "} - {formatDate(new Date(subscription.cancel_at))} - - )} + {subscription?.status === "active" && + subscription?.cancel_at && ( + + ⚠️ Plan ends on{" "} + {formatDate(new Date(subscription.cancel_at))} + + )}
{subscription ? (