diff --git a/src/client/components/CandidateListItem.tsx b/src/client/components/CandidateListItem.tsx index 11a244a..8b6ae44 100644 --- a/src/client/components/CandidateListItem.tsx +++ b/src/client/components/CandidateListItem.tsx @@ -1,4 +1,5 @@ import { Reorder } from "framer-motion"; +import { useRef } from "react"; import { useFormatters } from "../hooks/useFormatters"; import type { CandidateDelta } from "../hooks/useImpactDeltas"; import { LucideIcon } from "../lib/iconData"; @@ -56,6 +57,7 @@ export function CandidateListItem({ delta, onDragEnd, }: CandidateListItemProps) { + const isDragging = useRef(false); const { weight, price } = useFormatters(); const openCandidateEditPanel = useUIStore((s) => s.openCandidateEditPanel); const openConfirmDeleteCandidate = useUIStore( @@ -99,7 +101,10 @@ export function CandidateListItem({ {/* Name + badges */}