Desenvincular local com somente um local disponivel

This commit is contained in:
J. A. Messias 2024-12-06 15:26:50 -03:00
parent d787f8e89c
commit c73add1695
2 changed files with 1 additions and 2 deletions

View File

@ -10,7 +10,6 @@ class LocalsLocalDataSourceImpl {
Future<void> unlinkLocal() async {
await StorageHelper().set(KeychainStorageKey.clientUUID.value, '');
await StorageHelper().set(KeychainStorageKey.ownerName.value, '');
await StorageHelper().set(KeychainStorageKey.ownerUUID.value, '');
await StorageHelper().set(KeychainStorageKey.clientName.value, '');
await StorageHelper().set(KeychainStorageKey.ownerName.value, '');
}

View File

@ -109,7 +109,7 @@ class LocalsRemoteDataSourceImpl implements LocalsRemoteDataSource {
AuthenticationService.signOut(context);
return true;
} else if (isUnavailable) {
return await LocalUtil.handleUnavailable(context, locals);
return await selectLocal(context, response);
} else if (isEnabled) {
return await LocalUtil.handleEnabled(context, locals[0]);
} else if (isUnselected) {