diff --git a/apps/web/src/components/Pricing/SwitchToProButton.tsx b/apps/web/src/components/Pricing/SwitchToProButton.tsx index 4d5fc4819..0323701d8 100644 --- a/apps/web/src/components/Pricing/SwitchToProButton.tsx +++ b/apps/web/src/components/Pricing/SwitchToProButton.tsx @@ -9,18 +9,9 @@ import Spinner from '@/components/Spinner' import { TierActiveTag } from './TierActiveTag' import { getBillingUrl } from '@/app/(dashboard)/dashboard/utils' -import { toast } from '@/components/ui/use-toast' function createCheckout(domain: string, tierID: string, teamID: string) { - if (domain !== 'e2b.dev') { - console.error('Managing billing is allowed only at e2b.dev.') - toast({ - title: 'Error', - description: 'Managing billing is allowed only at e2b.dev.', - }) - } - - return fetch(getBillingUrl(domain, '/checkouts'), { + return fetch(getBillingUrl('e2b.dev', '/checkouts'), { method: 'POST', headers: { 'Content-Type': 'application/json',