🐛 Chatwoot widget open should not unmount bot if standard or popup
This commit is contained in:
@@ -85,7 +85,6 @@ export const Popup = (props: PopupProps) => {
|
||||
...existingPrefilledVariables,
|
||||
...data.variables,
|
||||
}))
|
||||
if (data.command === 'unmount') closeBot()
|
||||
}
|
||||
|
||||
const openBot = () => {
|
||||
|
||||
@@ -35,7 +35,6 @@ export const Standard = (
|
||||
const processIncomingEvent = (event: MessageEvent<CommandData>) => {
|
||||
const { data } = event
|
||||
if (!data.isFromTypebot) return
|
||||
if (data.command === 'unmount') setIsBotDisplayed(false)
|
||||
}
|
||||
|
||||
onCleanup(() => {
|
||||
|
||||
Reference in New Issue
Block a user