added created timestamp to intercom

This commit is contained in:
Vladyslav Matsiiako
2023-06-22 15:17:11 -07:00
parent 62fb048cce
commit 4621122cfb
2 changed files with 1 additions and 2 deletions

View File

@@ -54,7 +54,6 @@ export const load = () => {
// Initializes Intercom
export const boot = (options = {}) => {
console.log("boot", options, { app_id: APP_ID, ...options })
window &&
window.Intercom &&
window.Intercom("boot", { app_id: APP_ID, ...options });

View File

@@ -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 || "", createdAt: user?.createdAt});
}
useEffect(() => {