Skip to content

Commit b20513e

Browse files
Merge pull request #20360 from mozilla/PAY-3638-missing-manage-cta-on-sub-man-page-when-no-payment-method
fix(payments-next): Missing `Manage` CTA on SubMan page when no payment method
2 parents 3e91a08 + bd08047 commit b20513e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • apps/payments/next/app/[locale]/subscriptions/manage

apps/payments/next/app/[locale]/subscriptions/manage/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default async function Manage({
155155

156156
{isStripeCustomer &&
157157
!defaultPaymentMethod &&
158-
subscriptions.length > 0 && (
158+
(subscriptions.length > 0 || trialSubscriptions.length > 0) && (
159159
<Banner variant={BannerVariant.Warning}>
160160
<div className="leading-6 text-base">
161161
<p className="font-bold">
@@ -418,7 +418,7 @@ export default async function Manage({
418418
)}
419419

420420
{isStripeCustomer &&
421-
(defaultPaymentMethod || subscriptions.length > 0) && (
421+
(defaultPaymentMethod || subscriptions.length > 0 || trialSubscriptions.length > 0) && (
422422
<>
423423
<div
424424
className="border-none h-px bg-grey-100 my-5 tablet:my-8"

0 commit comments

Comments
 (0)