Skip to content

Commit bd08047

Browse files
fix(payments-next): Missing Manage CTA on SubMan page when no payment method
Because: * When a user has an issue with their payment method on the subscription management page, they should be shown a warning prompt informing them of this issue, and they should see an option to manage their payment method. This commit: * Adds this functionality when a user has free trials. Closes #[](https://mozilla-hub.atlassian.net/browse/PAY-3638)
1 parent 7406c2e commit bd08047

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)