diff --git a/refilc/lib/api/providers/sync.dart b/refilc/lib/api/providers/sync.dart index e5c3c33..09bda72 100644 --- a/refilc/lib/api/providers/sync.dart +++ b/refilc/lib/api/providers/sync.dart @@ -90,11 +90,11 @@ Future syncAll(BuildContext context) async { ''; if (authRes != 'success') { if (kDebugMode) print('ERROR: failed to refresh login'); - / lock = false; - / return Future.value(); - / } else { - / if (kDebugMode) print('INFO: access token refreshed'); - / } + lock = false; + return Future.value(); + } else { + if (kDebugMode) print('INFO: access token refreshed'); + } } else { if (kDebugMode) print('INFO: access token is not expired'); }