Skip to content

Commit

Permalink
version v1.1.73+354
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlipa91 committed Nov 6, 2023
1 parent 7e30908 commit e869da7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/screens/MatchDetails.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ class MatchDetailsState extends State<MatchDetails> {
});

Match match = await refreshMatch();
// we need to wait to load all logged user info before building the UI
await context.read<UserState>().fetchLoggedUserDetails();
refreshUsers(match);

Ratings? ratings = context.read<MatchesState>().getRatings(widget.matchId);
Expand Down Expand Up @@ -1021,7 +1023,7 @@ class Stats extends StatelessWidget {
builder: (context) {
Map<String, double?> userAndRate = {};
match.going.keys.forEach(
(u) => userAndRate[u] = (ratings.scores ?? {})[u]);
(u) => userAndRate[u] = ratings.scores[u]);
var entries = userAndRate.entries.toList();
entries.sort((a, b) =>
(b.value ?? -1).compareTo((a.value ?? -1)));
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.1.73+353
version: 1.1.73+354

environment:
sdk: 3.1.5
Expand Down

0 comments on commit e869da7

Please sign in to comment.