We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9759cc8 commit 307ad1fCopy full SHA for 307ad1f
lib/app/modules/home/controllers/home_controller.dart
@@ -260,13 +260,20 @@ class HomeController extends GetxController {
260
}
261
readProfileName();
262
263
+ userModel.value = await SecureStorageProvider().retrieveUserModel();
264
+ if (userModel.value == null){
265
FirebaseAuth.instance.authStateChanges().listen((user) {
266
if (user == null) {
267
isUserSignedIn.value = false;
268
} else {
269
isUserSignedIn.value = true;
270
271
});
272
+ }
273
+ else {
274
+ isUserSignedIn.value = true;
275
276
+
277
278
isSortedAlarmListEnabled.value = await SecureStorageProvider()
279
.readSortedAlarmListValue(key: 'sorted_alarm_list');
0 commit comments