Skip to content

Commit

Permalink
Rename federation ID to names variable
Browse files Browse the repository at this point in the history
  • Loading branch information
julien4215 committed Dec 12, 2024
1 parent 0af48bd commit 56075dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/model/broadcast/broadcast_federation.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const fedIdToName = {
const federationIdToName = {
'FID': 'FIDE',
'USA': 'United States of America',
'IND': 'India',
Expand Down
3 changes: 2 additions & 1 deletion lib/src/view/broadcast/broadcast_player_results_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ class _Body extends ConsumerWidget {
const SizedBox(width: 5),
Flexible(
child: Text(
fedIdToName[player.federation!]!,
federationIdToName[
player.federation!]!,
style: const TextStyle(
fontSize: 18.0,
),
Expand Down

0 comments on commit 56075dc

Please sign in to comment.