feat: harden geofence and distance diagnostics
This commit is contained in:
@@ -59,12 +59,13 @@ class AppBootstrapNotifier extends Notifier<AppBootstrapState> {
|
||||
|
||||
final home = ref.read(currentHomeProvider);
|
||||
if (home == null) {
|
||||
await syncGeofenceTask(ref.read(homesProvider), currentHome: null);
|
||||
state = const AppBootstrapState.noHomes();
|
||||
return;
|
||||
}
|
||||
|
||||
await ref.read(authInfoProvider.notifier).load(failOnError: true);
|
||||
await syncGeofenceTask(ref.read(homesProvider));
|
||||
await syncGeofenceTask(ref.read(homesProvider), currentHome: home);
|
||||
|
||||
state = const AppBootstrapState.ready();
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user