⚡ (audio) Add autoplay switch in settings
This commit is contained in:
@@ -74,7 +74,10 @@ export const Bot = (props: BotProps & { class?: string }) => {
|
||||
return setError(new Error("The bot you're looking for doesn't exist."))
|
||||
}
|
||||
|
||||
if (!data) return setError(new Error("Error! Couldn't initiate the chat."))
|
||||
if (!data) {
|
||||
if (error) console.error(error)
|
||||
return setError(new Error("Error! Couldn't initiate the chat."))
|
||||
}
|
||||
|
||||
if (data.resultId && typebotIdFromProps)
|
||||
setResultInStorage(data.typebot.settings.general.rememberUser?.storage)(
|
||||
|
||||
@@ -55,7 +55,7 @@ export const HostBubble = (props: Props) => {
|
||||
</Match>
|
||||
<Match when={props.message.type === BubbleBlockType.AUDIO}>
|
||||
<AudioBubble
|
||||
url={(props.message.content as AudioBubbleContent).url}
|
||||
content={props.message.content as AudioBubbleContent}
|
||||
onTransitionEnd={onTransitionEnd}
|
||||
/>
|
||||
</Match>
|
||||
|
||||
Reference in New Issue
Block a user