From 6b8df9115e3dd7e588aa811db55b6cb0cc5ff825 Mon Sep 17 00:00:00 2001 From: bardram Date: Mon, 21 Oct 2024 00:03:18 +0200 Subject: [PATCH] Update app_bloc.dart --- lib/blocs/app_bloc.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/blocs/app_bloc.dart b/lib/blocs/app_bloc.dart index 21d51f17..6a634ee0 100644 --- a/lib/blocs/app_bloc.dart +++ b/lib/blocs/app_bloc.dart @@ -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. ///