From 02b46ac1e7f1e1ad3db81e027e62e8c6ee93cfff Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Sun, 19 Jan 2025 21:24:37 +0000 Subject: [PATCH] fix: tools not working when no selection is present --- src/components/canvas/Canvas.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/canvas/Canvas.tsx b/src/components/canvas/Canvas.tsx index d8e2115..0af0d92 100644 --- a/src/components/canvas/Canvas.tsx +++ b/src/components/canvas/Canvas.tsx @@ -105,7 +105,7 @@ function Canvas() { if (selectionCoords.length !== 0) { return selectionCoords.some(([x2, y2]) => x2 === x && y2 === y); } - return false; + return true; }; const eraseTool = () => {