This commit is contained in:
jantunesmesias 2024-08-28 08:14:29 -03:00
parent e86e38feab
commit aa33e01077
1 changed files with 1 additions and 3 deletions

View File

@ -72,12 +72,10 @@ class _HomePageWidgetState extends State<HomePageWidget> {
devUUID: AppState().devUUID, devUUID: AppState().devUUID,
userUUID: AppState().userUUID, userUUID: AppState().userUUID,
); );
log(response.jsonBody.toString());
List<dynamic> locals = response.jsonBody['locais'] ?? []; List<dynamic> locals = response.jsonBody['locais'] ?? [];
final activeLocals = final activeLocals =
locals.where((local) => local['CLU_STATUS'] == 'A').toList(); locals.where((local) => local['CLU_STATUS'] == 'A').toList();
log("activeLocals $activeLocals");
if (activeLocals.isEmpty || AppState().cliUUID.isEmpty) { if (activeLocals.isEmpty || AppState().cliUUID.isEmpty) {
await showBottomSheet().then((_) => checkData()); await showBottomSheet().then((_) => checkData());
@ -116,7 +114,7 @@ class _HomePageWidgetState extends State<HomePageWidget> {
AppState().context = context; AppState().context = context;
() async { () async {
await checkLocal().whenComplete(() => log('checkLocal completed')); await checkLocal();
await FirebaseMessagingService().updateDeviceToken(); await FirebaseMessagingService().updateDeviceToken();
}(); }();