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 w-full">
<div className="flex flex-col w-full min-w-0"> <div className="flex flex-col w-full min-w-0">
<div className="flex"> <div className="flex">
{(typebot.theme.chat.hostAvatar?.isEnabled ?? true) && ( {bubbleSteps.length > 0 &&
<AvatarSideContainer (typebot.theme.chat.hostAvatar?.isEnabled ?? true) && (
ref={avatarSideContainerRef} <AvatarSideContainer
hostAvatarSrc={ ref={avatarSideContainerRef}
avatarSrc && parseVariables(typebot.variables)(avatarSrc) hostAvatarSrc={
} avatarSrc && parseVariables(typebot.variables)(avatarSrc)
/> }
)} />
)}
<TransitionGroup> <TransitionGroup>
{bubbleSteps.map((step) => ( {bubbleSteps.map((step) => (
<CSSTransition <CSSTransition