Skip to content

Commit

Permalink
Merge pull request #574 from BAW2501/main
Browse files Browse the repository at this point in the history
Remove Inapplicable Correspondence Statistics
  • Loading branch information
veloce authored Mar 4, 2024
2 parents da7549b + 3181151 commit e49a0c4
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/src/view/user/perf_stats_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class _Body extends ConsumerWidget {
),
],
),
if (data.percentile != null)
if (data.percentile != null && data.percentile! > 0.0)
Text(
(loggedInUser != null &&
loggedInUser.user.id == user.id)
Expand Down Expand Up @@ -171,13 +171,14 @@ class _Body extends ConsumerWidget {
child: _ProgressionWidget(data.progress),
),
StatCardRow([
StatCard(
context.l10n.rank,
value: data.rank == null
? '?'
: NumberFormat.decimalPattern(Intl.getCurrentLocale())
.format(data.rank),
),
if (data.rank != null)
StatCard(
context.l10n.rank,
value: data.rank == null
? '?'
: NumberFormat.decimalPattern(Intl.getCurrentLocale())
.format(data.rank),
),
StatCard(
context.l10n
.perfStatRatingDeviation('')
Expand Down

0 comments on commit e49a0c4

Please sign in to comment.