diff --git a/web/src/components/inventory/InventorySlot.tsx b/web/src/components/inventory/InventorySlot.tsx index 3aafd38f29..12de155d08 100644 --- a/web/src/components/inventory/InventorySlot.tsx +++ b/web/src/components/inventory/InventorySlot.tsx @@ -29,7 +29,7 @@ const InventorySlot: React.ForwardRefRenderFunction = ) => { const manager = useDragDropManager(); const dispatch = useAppDispatch(); - const timerRef = useRef(null); + const timerRef = useRef(null); const canDrag = useCallback(() => { return canPurchaseItem(item, { type: inventoryType, groups: inventoryGroups }) && canCraftItem(item, inventoryType); @@ -139,9 +139,9 @@ const InventorySlot: React.ForwardRefRenderFunction =
{ - timerRef.current = setTimeout(() => { + timerRef.current = window.setTimeout(() => { dispatch(openTooltip({ item, inventoryType })); - }, 500); + }, 500) as unknown as number; }} onMouseLeave={() => { dispatch(closeTooltip());