Skip to content

Commit 80cdb93

Browse files
committed
fix: format song size nicerly
1 parent bece312 commit 80cdb93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/modules/song/components/SongDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const SongDetails = ({ song }: SongDetailsProps) => {
4949
const stats = song.stats;
5050

5151
// Pre-compute complex values
52-
const formattedFileSize = `${(song.fileSize / 1024).toFixed(2)} kB`;
52+
const formattedFileSize = `${(song.fileSize / 1024).toFixed(0)} kB`;
5353
const formattedDuration = formatDuration(stats.duration);
5454
const formattedTimeSpent = formatTimeSpent(stats.minutesSpent);
5555

0 commit comments

Comments
 (0)