Skip to content

Commit

Permalink
feat: ✨ Add first name for support bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 27, 2022
1 parent f9a30bc commit 47403e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/builder/components/shared/SupportBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const SupportBubble = () => {
},
hiddenVariables: {
'User ID': user?.id,
Name: user?.name ?? undefined,
'First name': user?.name?.split(' ')[0] ?? undefined,
Email: user?.email ?? undefined,
'Typebot ID': typebot?.id,
'Avatar URL': user?.image ?? undefined,
Expand Down
4 changes: 4 additions & 0 deletions apps/builder/contexts/TypebotContext/TypebotContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ export const TypebotContext = ({
new Date(typebot.updatedAt) >
new Date(currentTypebotRef.current.updatedAt)
) {
console.log(
new Date(typebot.updatedAt),
new Date(currentTypebotRef.current.updatedAt)
)
setLocalTypebot({ ...typebot })
}

Expand Down

3 comments on commit 47403e3

@vercel
Copy link

@vercel vercel bot commented on 47403e3 Mar 27, 2022

@vercel
Copy link

@vercel vercel bot commented on 47403e3 Mar 27, 2022

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 47403e3 Mar 27, 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-typebot-io.vercel.app
builder-v2-git-main-typebot-io.vercel.app
app.typebot.io

Please sign in to comment.