fix: only boot intercom if .env variable is set (#14656)

This commit is contained in:
Somay Chauhan authored and GitHub committed 2024-04-19 09:04:02 +01:00
1 parent d25c043046
commit f6e45842fd
2 files changed
+4 -4

No files matched your search

@@ -204,17 +204,17 @@ export default function HelpMenuItem({ onHelpItemSelect }: HelpMenuItemProps) {
setFreshChat(false);
} else if (isInterComEnabled) {
shutdown();
toggleIntercom(false);
}
toggleIntercom(false);
} else {
if (isFreshChatEnabled) {
setFreshChat(true);
} else if (isInterComEnabled) {
await open();
toggleIntercom(true);
} else {
loadChat({ open: true });
}
toggleIntercom(true);
}
onHelpItemSelect();
}}>