From 84c1fd629d75815d9d1be6e64840ca9d366c6125 Mon Sep 17 00:00:00 2001 From: Bennik2000 Date: Thu, 8 Oct 2020 11:59:38 +0200 Subject: [PATCH] Fix migration bug --- lib/common/data/preferences/preferences_provider.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/data/preferences/preferences_provider.dart b/lib/common/data/preferences/preferences_provider.dart index a28be013..fd1fe01b 100644 --- a/lib/common/data/preferences/preferences_provider.dart +++ b/lib/common/data/preferences/preferences_provider.dart @@ -139,7 +139,7 @@ class PreferencesProvider { } Future getScheduleSourceType() async { - return await _preferencesAccess.get(ScheduleSourceType); + return await _preferencesAccess.get(ScheduleSourceType) ?? 0; } Future setScheduleSourceType(int value) async {