Skip to content

Commit

Permalink
Merge branch 'master' into el/announcements-community-or-encointer-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb authored Jul 11, 2023
2 parents 15e14ac + cc8ad9f commit 955052a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/lib/store/encointer/encointer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ abstract class _EncointerStore with Store {
return chosenCid != null && communities!.isNotEmpty && communities!.where((cn) => cn.cid == chosenCid).isNotEmpty;
}

@computed
bool get meetupCompleted {
return communityAccount?.meetupCompleted ?? false;
}

// -- sub-stores

/// Bazaar sub-stores.
Expand Down Expand Up @@ -555,7 +560,7 @@ abstract class _EncointerStore with Store {
final assigned = communityAccount?.isAssigned ?? false;
final hasClaims = (communityAccount?.scannedAttendeesCount ?? 0) > 0;

return currentPhase == CeremonyPhase.Attesting && assigned && hasClaims;
return currentPhase == CeremonyPhase.Attesting && assigned && hasClaims && !meetupCompleted;
}

@computed
Expand Down
7 changes: 7 additions & 0 deletions app/lib/store/encointer/encointer.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 955052a

Please sign in to comment.