diff --git a/app/lib/screens/study/dashboard/dashboard.dart b/app/lib/screens/study/dashboard/dashboard.dart index 108970a69..50cd6cc99 100644 --- a/app/lib/screens/study/dashboard/dashboard.dart +++ b/app/lib/screens/study/dashboard/dashboard.dart @@ -192,6 +192,11 @@ class _DashboardScreenState extends State ); launchUrl(emailLaunchUri); }, + // text color is white, so we need to set the background color to black + style: ElevatedButton.styleFrom( + backgroundColor: + Theme.of(context).primaryColor, + ), child: const Text('Send via email'), ), FutureBuilder( @@ -203,9 +208,6 @@ class _DashboardScreenState extends State if (snapshot.hasData) { final String data = "ignoreBatteryOptimizations: ${snapshot.data}"; - StudyNotifications - .scheduledNotificationsDebug = - "${StudyNotifications.scheduledNotificationsDebug}\n\n$data\n"; return Text(data); } else { return const CircularProgressIndicator(); @@ -214,7 +216,8 @@ class _DashboardScreenState extends State ), SelectableText( StudyNotifications - .scheduledNotificationsDebug!, + .scheduledNotificationsDebug ?? + 'No data', ), ], ), diff --git a/core/lib/src/models/tables/study_subject.dart b/core/lib/src/models/tables/study_subject.dart index 5a2d0136d..8797ab371 100644 --- a/core/lib/src/models/tables/study_subject.dart +++ b/core/lib/src/models/tables/study_subject.dart @@ -376,7 +376,8 @@ class StudySubject extends SupabaseObjectFunctions { return SupabaseQuery.extractSupabaseList( await env.client .from(tableName) - .select('*,study!study_subject_studyId_fkey(*),subject_progress(*)'), + .select('*,study!study_subject_studyId_fkey(*),subject_progress(*)') + .eq('user_id', userId), ); }