mirror of
https://github.com/Infisical/infisical.git
synced 2025-03-27 09:40:45 +00:00
intercom debugging
This commit is contained in:
@ -54,7 +54,7 @@ export const load = () => {
|
||||
|
||||
// Initializes Intercom
|
||||
export const boot = (options = {}) => {
|
||||
console.log("boot", options)
|
||||
console.log("boot", options, { app_id: APP_ID, ...options })
|
||||
window &&
|
||||
window.Intercom &&
|
||||
window.Intercom("boot", { app_id: APP_ID, ...options });
|
||||
|
@ -17,7 +17,7 @@ export const IntercomProvider = ({ children }: { children: any }) => {
|
||||
if (typeof window !== "undefined") {
|
||||
console.log("window is defined");
|
||||
loadIntercom();
|
||||
bootIntercom({name: `${user.firstName} ${user.lastName}`, email: user.email});
|
||||
bootIntercom({name: `${user?.firstName || ""} ${user?.lastName || ""}`, email: user?.email || ""});
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
|
Reference in New Issue
Block a user