Commit ed3ebb7 1 parent 966fea4 commit ed3ebb7 Copy full SHA for ed3ebb7
File tree 1 file changed +6
-1
lines changed
app/lib/page/profile/account
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -104,12 +104,17 @@ class _AccountManagePageState extends State<AccountManagePage> {
104
104
105
105
final community = _appStore.encointer.communityStores? [cidFmt];
106
106
107
- if (community == null ) {
107
+ if (community == null || community.applyDemurrage == null ) {
108
108
// Never happened, but we want to be defensive here to prevent a red screen.
109
109
Log .e ('[AccountManagePage] Communities is null, even though we have a balance entry for it. Fatal app error.' );
110
110
return Container ();
111
111
}
112
112
113
+ if ((community.applyDemurrage !(entry) ?? 0 ) <= 0.0001 ) {
114
+ Log .p ("[AccountManagePage] Don't display community with 0 balance" );
115
+ return Container ();
116
+ }
117
+
113
118
final isBootstrapper = _appStore.encointer.community! .bootstrappers != null &&
114
119
_appStore.encointer.community! .bootstrappers! .contains (address);
115
120
You can’t perform that action at this time.
0 commit comments