fix(bug): agent not starting on landing page - fix

This commit is contained in:
Soumyadas15 2025-06-06 17:12:58 +05:30
parent 2445e0e0c2
commit 5ecd874988
1 changed files with 1 additions and 4 deletions

View File

@ -135,11 +135,8 @@ export function HeroSection() {
setInitiatedThreadId(result.thread_id);
setInputValue('');
} catch (error: any) {
console.error('Error creating agent:', error);
if (error instanceof BillingError) {
console.log('Handling BillingError from hero section:', error.detail);
onOpen("paymentRequiredDialog");
console.log('Billing error:');
} else {
const isConnectionError =
error instanceof TypeError &&