Skip to content

Commit 0226462

Browse files
authored
Merge pull request #19994 from mozilla/PAY-3509
fix(payments-ui): Keep success messaging after subscription update
2 parents d67662a + adef847 commit 0226462

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • libs/payments/ui/src/lib/client/components/ChurnCancel

libs/payments/ui/src/lib/client/components/ChurnCancel/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,8 @@ export function ChurnCancel({
126126
setLoading(false);
127127
}
128128

129-
const isActiveNotCanceling = !!active && !cancelAtPeriodEnd;
130-
const isOffer = reason === 'eligible' && isActiveNotCanceling;
131-
const isDiscountAlreadyApplied =
132-
reason === 'discount_already_applied' && isActiveNotCanceling;
129+
const isOffer = reason === 'eligible' && !cancelAtPeriodEnd && active;
130+
const isDiscountAlreadyApplied = reason === 'discount_already_applied';
133131

134132
return (
135133
<section

0 commit comments

Comments
 (0)