Skip to content

Commit 5c68a7c

Browse files
alexcarpenteroctoper
authored andcommitted
wip
1 parent 5c9e75b commit 5c68a7c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/clerk-js/src/ui/components/PricingTable/PricingTableDefault.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ function Card(props: CardProps) {
202202
</Box>
203203
) : null}
204204

205-
{(!plan.isDefault || !isDefaultPlanImplicitlyActiveOrUpcoming || isImplicitlyActiveOrUpcoming) && (
205+
{(!plan.isDefault ||
206+
!isDefaultPlanImplicitlyActiveOrUpcoming ||
207+
(isImplicitlyActiveOrUpcoming && plan.isDefault && subscriptions.length > 0)) && (
206208
<Box
207209
elementDescriptor={descriptors.pricingTableCardFooter}
208210
sx={t => ({
@@ -225,7 +227,7 @@ function Card(props: CardProps) {
225227
onSelect(plan, event);
226228
}}
227229
/>
228-
) : (
230+
) : subscriptions.length > 0 ? (
229231
<Text
230232
elementDescriptor={descriptors.pricingTableCardFooterNotice}
231233
variant={isCompact ? 'buttonSmall' : 'buttonLarge'}
@@ -236,7 +238,7 @@ function Card(props: CardProps) {
236238
textAlign: 'center',
237239
})}
238240
/>
239-
)}
241+
) : null}
240242
</Box>
241243
)}
242244
</Box>

0 commit comments

Comments
 (0)