Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(subscriptions): show one create action (#103951)

Matt Puae72c146c00ee
diff --git a/products/subscriptions/frontend/components/Subscriptions/views/TabbedManageSubscriptions.tsx b/products/subscriptions/frontend/components/Subscriptions/views/TabbedManageSubscriptions.tsx
index 0bd331f04ddc..dc0e74e3683b 100644
--- a/products/subscriptions/frontend/components/Subscriptions/views/TabbedManageSubscriptions.tsx
+++ b/products/subscriptions/frontend/components/Subscriptions/views/TabbedManageSubscriptions.tsx
@@ -221,9 +221,9 @@ export function TabbedManageSubscriptions({
data-attr="manage-subscriptions-tabs"
rightSlotClassName="bg-transparent"
rightSlot={
- activeTab === 'resource' ? (
+ activeTab === 'resource' && subscriptions.length > 0 ? (
<LemonButton type="primary" onClick={() => onSelect('new')} data-attr="add-subscription">
- Add subscription
+ Create subscription
</LemonButton>
) : undefined
}