Files
units-ui/lib/units.ts
Sebastian Krüger fa1b82bbd6 fix: handle same-unit conversions in tempo converter
Fix issue where converting BPM to BPM (or any tempo unit to itself)
was incorrectly applying the conversion formula instead of returning
the same value.

Example bug: 120 BPM → BPM was returning 0.008333 instead of 120

Added check: if fromUnit === toUnit, return value unchanged.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-08 11:59:15 +01:00

7.4 KiB