From cd42c720a581c3b65f3610f3547a4eb98cb5479b Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sun, 28 Jul 2024 21:39:33 +0530 Subject: [PATCH] fix: return instead of console.log() --- src/components/atoms/canvas.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/atoms/canvas.tsx b/src/components/atoms/canvas.tsx index f6e6fb1c..6b16dab2 100644 --- a/src/components/atoms/canvas.tsx +++ b/src/components/atoms/canvas.tsx @@ -52,7 +52,7 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => { case 'mousedown': const clickCoordinates = getMappedCoordinates(event, canvasRef.current, width, height); if (getTextRef.current === true) { - console.log('get text') + return; } else { socket.emit('input:mousedown', clickCoordinates); }