fix: return instead of console.log()

This commit is contained in:
karishmas6
2024-07-28 21:39:33 +05:30
parent 6cb0a8f3ae
commit cd42c720a5

View File

@@ -52,7 +52,7 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => {
case 'mousedown': case 'mousedown':
const clickCoordinates = getMappedCoordinates(event, canvasRef.current, width, height); const clickCoordinates = getMappedCoordinates(event, canvasRef.current, width, height);
if (getTextRef.current === true) { if (getTextRef.current === true) {
console.log('get text') return;
} else { } else {
socket.emit('input:mousedown', clickCoordinates); socket.emit('input:mousedown', clickCoordinates);
} }