From 344c3b6598075db3e01d52980a02f49104d12de8 Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Wed, 2 Oct 2024 13:14:48 +0300 Subject: [PATCH] fix: settings fields --- lib/features/settings/presentation/pages/settings_screen.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/features/settings/presentation/pages/settings_screen.dart b/lib/features/settings/presentation/pages/settings_screen.dart index 9c1e7b34..dee57f62 100644 --- a/lib/features/settings/presentation/pages/settings_screen.dart +++ b/lib/features/settings/presentation/pages/settings_screen.dart @@ -35,8 +35,8 @@ class _SettingsScreenState extends State { if (state is SettingsStateLoaded) { updatesNotificationsSwitchState = state.profileSettings.newUpdatesNotifications == 1 ? true : false; fillDiaryNotificationsSwitchState = state.profileSettings.diaryReminderNotifications == 1 ? true : false; - bedTimeSwitchState = state.profileSettings.isBedtimeFillable == 1 ? true : false; - moodSwitchState = state.profileSettings.isMoodFillable == 1 ? true : false; + bedTimeSwitchState = state.profileSettings.isBedtimeFillable; + moodSwitchState = state.profileSettings.isMoodFillable; } }, builder: (BuildContext context, SettingsState state) {