From 462415fefdf6776a1e78b858083149a95e14d115 Mon Sep 17 00:00:00 2001 From: hughcrt Date: Tue, 21 Jan 2025 16:41:39 +0000 Subject: [PATCH 1/2] remove crisp errors in dev --- packages/frontend/components/checks/ChecksModal.tsx | 2 +- packages/frontend/components/layout/Empty.tsx | 4 ++-- packages/frontend/components/layout/Sidebar.tsx | 2 +- packages/frontend/pages/join.tsx | 2 +- packages/frontend/utils/analytics.ts | 4 +++- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/frontend/components/checks/ChecksModal.tsx b/packages/frontend/components/checks/ChecksModal.tsx index 2c418e36..d7c13835 100644 --- a/packages/frontend/components/checks/ChecksModal.tsx +++ b/packages/frontend/components/checks/ChecksModal.tsx @@ -182,7 +182,7 @@ export default function ChecksModal({ { - $crisp.push(["do", "chat:open"]); + $crisp?.push(["do", "chat:open"]); }} variant="transparent" > diff --git a/packages/frontend/components/layout/Empty.tsx b/packages/frontend/components/layout/Empty.tsx index 9c578512..ded9d04a 100644 --- a/packages/frontend/components/layout/Empty.tsx +++ b/packages/frontend/components/layout/Empty.tsx @@ -343,7 +343,7 @@ const IntegrationStepper = ({ integration }: { integration: string }) => {