Skip to content

Commit

Permalink
[faucet] better variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Feb 20, 2024
1 parent 3ba4112 commit b9c2877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/page/profile/account/account_manage_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class _AccountManagePageState extends State<AccountManagePage> {
final allFaucets = await webApi.encointer.getAllFaucetsWithAccount();

// show faucets we have reputation for and faucets of the currently selected cid.
final reputationsCids = _appStore.encointer.account!.reputations.values.map((e) => e.communityIdentifier).toSet()
final relevantCids = _appStore.encointer.account!.reputations.values.map((e) => e.communityIdentifier).toSet()
..add(_appStore.encointer.chosenCid!);

faucets = Map.fromEntries(allFaucets.entries.where((e) {
Expand All @@ -64,7 +64,7 @@ class _AccountManagePageState extends State<AccountManagePage> {
// if the whitelist is null, all communities may access it.
return true;
} else {
return containsAny(whitelist, reputationsCids.toList());
return containsAny(whitelist, relevantCids.toList());
}
}));
setState(() {});
Expand Down

0 comments on commit b9c2877

Please sign in to comment.