Skip to content

Commit b9c2877

Browse files
committed
[faucet] better variable naming
1 parent 3ba4112 commit b9c2877

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/lib/page/profile/account/account_manage_page.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class _AccountManagePageState extends State<AccountManagePage> {
5555
final allFaucets = await webApi.encointer.getAllFaucetsWithAccount();
5656

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

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

0 commit comments

Comments
 (0)