We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d67662a + adef847 commit 0226462Copy full SHA for 0226462
1 file changed
libs/payments/ui/src/lib/client/components/ChurnCancel/index.tsx
@@ -126,10 +126,8 @@ export function ChurnCancel({
126
setLoading(false);
127
}
128
129
- const isActiveNotCanceling = !!active && !cancelAtPeriodEnd;
130
- const isOffer = reason === 'eligible' && isActiveNotCanceling;
131
- const isDiscountAlreadyApplied =
132
- reason === 'discount_already_applied' && isActiveNotCanceling;
+ const isOffer = reason === 'eligible' && !cancelAtPeriodEnd && active;
+ const isDiscountAlreadyApplied = reason === 'discount_already_applied';
133
134
return (
135
<section
0 commit comments