fix(stats): minutes page shows plays and streams page shows minutes which should be the opposite #1880

This commit is contained in:
Kingkor Roy Tirtho 2024-09-15 09:56:59 +06:00
parent 3afe3cea80
commit 29015bca76
2 changed files with 4 additions and 4 deletions

View File

@ -49,8 +49,8 @@ class StatsMinutesPage extends HookConsumerWidget {
return StatsTrackItem(
track: track.track,
info: Text(
context.l10n
.count_plays(compactNumberFormatter.format(track.count)),
context.l10n.count_mins(compactNumberFormatter
.format(track.count * track.track.duration!.inMinutes)),
),
);
},

View File

@ -49,8 +49,8 @@ class StatsStreamsPage extends HookConsumerWidget {
return StatsTrackItem(
track: track.track,
info: Text(
context.l10n.count_mins(compactNumberFormatter
.format(track.count * track.track.duration!.inMinutes)),
context.l10n
.count_plays(compactNumberFormatter.format(track.count)),
),
);
},