Skip to content

Commit

Permalink
fix(stats): minutes page shows plays and streams page shows minutes w…
Browse files Browse the repository at this point in the history
…hich should be the opposite #1880
  • Loading branch information
KRTirtho committed Sep 15, 2024
1 parent 3afe3ce commit 29015bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/pages/stats/minutes/minutes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
),
);
},
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/stats/streams/streams.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
),
);
},
Expand Down

0 comments on commit 29015bc

Please sign in to comment.