Skip to content

Commit adde98c

Browse files
authored
fix(console): custom domain paywall display logic (#7989)
1 parent c3e7bfc commit adde98c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/console/src/pages/TenantSettings/TenantDomainSettings/MultipleCustomDomainsFormField/PaywallNotification.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ export default function PaywallNotification() {
2121
const {
2222
currentSubscription: { planId },
2323
currentSubscriptionQuota,
24+
hasSurpassedSubscriptionQuotaLimit,
2425
} = useContext(SubscriptionDataContext);
2526
const { currentTenant } = useContext(TenantsContext);
2627

27-
const { hasSurpassedSubscriptionQuotaLimit } = useContext(SubscriptionDataContext);
28-
2928
if (isFreeTenant) {
3029
return (
3130
<InlineNotification

packages/console/src/pages/TenantSettings/TenantDomainSettings/MultipleCustomDomainsFormField/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function MultipleCustomDomainsFormField() {
8484
/>
8585
{
8686
// TODO @xiaoyijun: remove the dev feature flag
87-
isDevFeaturesEnabled && <PaywallNotification />
87+
isDevFeaturesEnabled && hasReachedQuotaLimit && <PaywallNotification />
8888
}
8989
</FormField>
9090
{allDomains.length > 0 && (

0 commit comments

Comments
 (0)