Skip to content

Commit

Permalink
fix(engine): 🚑️ Fix multiple avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 2, 2022
1 parent e9a9dc0 commit 6ea23ef
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions packages/bot-engine/src/components/ChatBlock/ChatBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

2 comments on commit 6ea23ef

@vercel
Copy link

@vercel vercel bot commented on 6ea23ef Mar 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
app.typebot.io
builder-v2-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 6ea23ef Mar 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.