From 1fac5015f4227c8e21638507ef3070e0ad6c5e6c Mon Sep 17 00:00:00 2001 From: Soumyadas15 Date: Fri, 6 Jun 2025 16:10:02 +0530 Subject: [PATCH] fix(lp): fix agent start on landing page --- frontend/src/components/home/sections/hero-section.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/frontend/src/components/home/sections/hero-section.tsx b/frontend/src/components/home/sections/hero-section.tsx index ce549411..f2ec8206 100644 --- a/frontend/src/components/home/sections/hero-section.tsx +++ b/frontend/src/components/home/sections/hero-section.tsx @@ -138,14 +138,9 @@ export function HeroSection() { } catch (error: any) { console.error('Error creating agent:', error); - // Check specifically for BillingError (402) if (error instanceof BillingError) { console.log('Handling BillingError from hero section:', error.detail); - // Open the payment required dialog modal instead of showing the alert - onOpen("paymentRequiredDialog"); - // Don't show toast for billing errors } else { - // Handle other errors (e.g., network, other API errors) const isConnectionError = error instanceof TypeError && error.message.includes('Failed to fetch');