From ae6ecf35b1db0014920bf54fef197c81aa4437d3 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Wed, 10 Apr 2024 13:51:59 +0100 Subject: [PATCH] Fix cursor chat in context menu. (#3435) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR fixes flipped boolean logic for displaying the cursor chat option on coarse pointer devices. ### Change Type - [x] `dotcom` — Changes the tldraw.com web app - [x] `bugfix` — Bug fix --- apps/dotcom/src/utils/context-menu/CursorChatMenuItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dotcom/src/utils/context-menu/CursorChatMenuItem.tsx b/apps/dotcom/src/utils/context-menu/CursorChatMenuItem.tsx index db0e25d19..5a6872d56 100644 --- a/apps/dotcom/src/utils/context-menu/CursorChatMenuItem.tsx +++ b/apps/dotcom/src/utils/context-menu/CursorChatMenuItem.tsx @@ -7,7 +7,7 @@ export function CursorChatMenuItem() { const shouldShow = useValue( 'show cursor chat', () => { - return editor.getInstanceState().isCoarsePointer && !editor.getSelectedShapes().length + return !editor.getInstanceState().isCoarsePointer }, [editor] )