Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show generic support button by default instead of premium support button #984

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ArmanNik
Copy link
Member

@ArmanNik ArmanNik commented Mar 19, 2024

Fixes #979

@ArmanNik ArmanNik self-assigned this Mar 19, 2024
Copy link

vercel bot commented Mar 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2024 1:58pm
console-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2024 1:58pm
console-preview-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2024 1:58pm

@@ -44,7 +44,18 @@
</p>
{/if}
</div>
{#if $organization?.billingPlan === BillingPlan.STARTER}
{#if $organization?.billingPlan === BillingPlan.PRO || $organization?.billingPlan === BillingPlan.SCALE}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, this is shown now if no org exists:

image

But the "Get Premium support" button doesn't do anything.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, what if I have a pro org, but I'm on the account page??

@@ -44,7 +44,18 @@
</p>
{/if}
</div>
{#if $organization?.billingPlan === BillingPlan.STARTER}
{#if $organization?.billingPlan === BillingPlan.PRO || $organization?.billingPlan === BillingPlan.SCALE}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, what if I have a pro org, but I'm on the account page??

}}>
<span class="text">Contact our Support Team</span>
</Button>
{:else}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also handle the case where I click the "Get Premium support" when I'm on the account page and I do have an org. Right now, it shows the "Get premium support" button, but clicking does nothing (because $organization isn't set).

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Bug Report: Premium Support is Shown When No Org. Exists
3 participants