From 22ca4f2e92771ea1e6b48fe97547c6539687dc73 Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Mon, 12 Jun 2023 20:56:19 -0700 Subject: [PATCH] Fixed the typeerror issue --- frontend/src/layouts/AppLayout/AppLayout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx index a2e052588e..97b27f8851 100644 --- a/frontend/src/layouts/AppLayout/AppLayout.tsx +++ b/frontend/src/layouts/AppLayout/AppLayout.tsx @@ -125,8 +125,8 @@ export const AppLayout = ({ children }: LayoutProps) => { )(); window.Intercom('boot', { - app_id: {INTERCOM_ID}, - email: user.email || 'undefined' + app_id: {INTERCOM_ID} || "undefined", + email: user?.email || 'undefined' }); }, []);