@@ -29,6 +29,7 @@ import {
|
||||
defaultFontType,
|
||||
defaultProgressBarPosition,
|
||||
} from '@typebot.io/schemas/features/typebot/theme/constants'
|
||||
import { CorsError } from '@/utils/CorsError'
|
||||
|
||||
export type BotProps = {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
@@ -106,6 +107,10 @@ export const Bot = (props: BotProps & { class?: string }) => {
|
||||
)
|
||||
}
|
||||
|
||||
if (error instanceof CorsError) {
|
||||
return setError(new Error(error.message))
|
||||
}
|
||||
|
||||
if (!data) {
|
||||
if (error) {
|
||||
console.error(error)
|
||||
|
||||
Reference in New Issue
Block a user