fix: settings fields

This commit is contained in:
mso7nueh
2024-10-02 13:14:48 +03:00
parent de30b93fa6
commit 344c3b6598

View File

@@ -35,8 +35,8 @@ class _SettingsScreenState extends State<SettingsScreen> {
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) {