Skip to content

Commit

Permalink
Merge pull request #64 from Bennik2000/fix/settings-migration
Browse files Browse the repository at this point in the history
Fix migration bug
  • Loading branch information
Bennik2000 authored Oct 8, 2020
2 parents bc2e1a2 + 84c1fd6 commit b7b9753
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 b7b9753

Please sign in to comment.