File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/clerk-js/src/ui/components/PricingTable Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments