🐛 (chatwoot) Fix email prefill when Chatwoot contact already exist
This commit is contained in:
@@ -13,7 +13,7 @@ const parseSetUserCode = (
|
||||
) =>
|
||||
user?.email || user?.id
|
||||
? `
|
||||
window.$chatwoot.setUser(${user?.id ?? `"${resultId}"`}, {
|
||||
window.$chatwoot.setUser(${user?.id ?? user.email ?? `"${resultId}"`}, {
|
||||
email: ${user?.email ? user.email : 'undefined'},
|
||||
name: ${user?.name ? user.name : 'undefined'},
|
||||
avatar_url: ${user?.avatarUrl ? user.avatarUrl : 'undefined'},
|
||||
|
||||
Reference in New Issue
Block a user