Skip to content

Commit

Permalink
Fix migration bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bennik2000 committed Oct 8, 2020
1 parent bc2e1a2 commit 84c1fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/data/preferences/preferences_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class PreferencesProvider {
}

Future<int> getScheduleSourceType() async {
return await _preferencesAccess.get<int>(ScheduleSourceType);
return await _preferencesAccess.get<int>(ScheduleSourceType) ?? 0;
}

Future<void> setScheduleSourceType(int value) async {
Expand Down

0 comments on commit 84c1fd6

Please sign in to comment.