Skip to content

Commit

Permalink
Update app_bloc.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
bardram committed Oct 20, 2024
1 parent 0c7c21f commit 6b8df91
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/blocs/app_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,11 @@ class StudyAppBLoC extends ChangeNotifier {
/// * shown to the user
/// * accepted by the user
/// * successfully uploaded to CARP
set hasInformedConsentBeenAccepted(bool accepted) =>
LocalSettings().participant?.hasInformedConsentBeenAccepted = accepted;
set hasInformedConsentBeenAccepted(bool accepted) {
var participant = LocalSettings().participant;
participant?.hasInformedConsentBeenAccepted = true;
LocalSettings().participant = participant;
}

/// The informed consent has been accepted by the user.
///
Expand Down

0 comments on commit 6b8df91

Please sign in to comment.