feat: ✨ Add first name for support bubble
This commit is contained in:
@@ -32,7 +32,7 @@ export const SupportBubble = () => {
|
|||||||
},
|
},
|
||||||
hiddenVariables: {
|
hiddenVariables: {
|
||||||
'User ID': user?.id,
|
'User ID': user?.id,
|
||||||
Name: user?.name ?? undefined,
|
'First name': user?.name?.split(' ')[0] ?? undefined,
|
||||||
Email: user?.email ?? undefined,
|
Email: user?.email ?? undefined,
|
||||||
'Typebot ID': typebot?.id,
|
'Typebot ID': typebot?.id,
|
||||||
'Avatar URL': user?.image ?? undefined,
|
'Avatar URL': user?.image ?? undefined,
|
||||||
|
|||||||
@@ -167,6 +167,10 @@ export const TypebotContext = ({
|
|||||||
new Date(typebot.updatedAt) >
|
new Date(typebot.updatedAt) >
|
||||||
new Date(currentTypebotRef.current.updatedAt)
|
new Date(currentTypebotRef.current.updatedAt)
|
||||||
) {
|
) {
|
||||||
|
console.log(
|
||||||
|
new Date(typebot.updatedAt),
|
||||||
|
new Date(currentTypebotRef.current.updatedAt)
|
||||||
|
)
|
||||||
setLocalTypebot({ ...typebot })
|
setLocalTypebot({ ...typebot })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user