diff --git a/src/navigation/SideNavigator.tsx b/src/navigation/SideNavigator.tsx index cf654fe..d07e21b 100644 --- a/src/navigation/SideNavigator.tsx +++ b/src/navigation/SideNavigator.tsx @@ -32,7 +32,7 @@ import PlaneIcon from "products/AviationIcons/PlaneIcon"; import AirportMapIcon from "products/AviationIcons/AirportMapIcon"; import JobsiteIcon from "products/Construction/JobSiteIcon"; import { getThemeType } from "theme"; -import { openCrispChat } from "chat/CrispChat"; +import { isCrispEnabled, openCrispChat } from "chat/CrispChat"; import ObjectHeaterIcon from "products/Construction/ObjectHeaterIcon"; import TasksIcon from "products/Construction/TasksIcon"; import CableIcon from "products/Bindapt/CableIcon"; @@ -551,17 +551,19 @@ export default function SideNavigator(props: Props) { {isAuthenticated && authenticatedSideMenu()} - - - - openCrispChat()}> - - - - {open && } - - - + {isCrispEnabled() && (<> + + + + openCrispChat()}> + + + + {open && } + + + + )} );