fix(lp): fix agent start on landing page

This commit is contained in:
Soumyadas15 2025-06-06 16:10:02 +05:30
parent ed66a0c0f8
commit 1fac5015f4
1 changed files with 0 additions and 5 deletions

View File

@ -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');