mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +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