We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35c7a99 commit adef847Copy full SHA for adef847
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