message: chore(connction-handler): cleanup
diff: @@ -154,11 +154,9 @@ export function handlePointerDown({
  }
  function onPointerUp(event: MouseEvent | TouchEvent) {
  - if (prevClosestHandle) {
  - if (connection && isValid) {
  + if (prevClosestHandle && connection && isValid) {
  onConnect?.(connection);
  }
  - }
  // it's important to get a fresh reference from the store here
  // in order to get the latest state of onConnectEnd
  