Fix local track quality badge showing Hz instead of kHz

Convert sample_rate to kHz in localTrackToDisplay function so local
tracks display correctly as 16bit/44.1kHz instead of 16bit/44100kHz
This commit is contained in:
vicrodh committed 2026-01-16 06:40:23 -06:00
1 parent 3297257a24
commit 688d798b9d
1 file changed
+1 -1
@@ -360,7 +360,7 @@
durationSeconds: track.duration_secs,
hires: (track.bit_depth && track.bit_depth >= 24) || track.sample_rate > 48000,
bitDepth: track.bit_depth,
samplingRate: track.sample_rate,
samplingRate: track.sample_rate / 1000, // Convert Hz to kHz for display
isLocal: true,
localTrackId: track.id,
artworkPath: track.artwork_path