2
0

fix(engine): 🚑️ Fix multiple avatars

This commit is contained in:
Baptiste Arnaud
2022-03-02 15:14:40 +01:00
parent e9a9dc00e2
commit 6ea23ef63e

View File

@ -131,14 +131,15 @@ export const ChatBlock = ({
<div className="flex w-full">
<div className="flex flex-col w-full min-w-0">
<div className="flex">
{(typebot.theme.chat.hostAvatar?.isEnabled ?? true) && (
<AvatarSideContainer
ref={avatarSideContainerRef}
hostAvatarSrc={
avatarSrc && parseVariables(typebot.variables)(avatarSrc)
}
/>
)}
{bubbleSteps.length > 0 &&
(typebot.theme.chat.hostAvatar?.isEnabled ?? true) && (
<AvatarSideContainer
ref={avatarSideContainerRef}
hostAvatarSrc={
avatarSrc && parseVariables(typebot.variables)(avatarSrc)
}
/>
)}
<TransitionGroup>
{bubbleSteps.map((step) => (
<CSSTransition