fix: add cenário não coberto pelo processLocals

This commit is contained in:
J. A. Messias 2024-10-17 10:56:40 -03:00
parent a63a9d3f30
commit 5885b14ff9
1 changed files with 3 additions and 1 deletions

View File

@ -88,6 +88,7 @@ class LocalizationService {
final bool isUnselected = StorageUtil().cliUUID.isEmpty && StorageUtil().cliName.isEmpty & StorageUtil().ownerUUID.isEmpty;
final bool isSelected = StorageUtil().cliUUID.isNotEmpty && StorageUtil().cliName.isNotEmpty && isInactived;
final bool isUnavailable = isPending && isUnselected && isUnique;
final bool isAvailable = StorageUtil().cliUUID.isEmpty && StorageUtil().cliName.isEmpty;
@ -125,7 +126,7 @@ class LocalizationService {
return await processData(context);
} else if (isUnselected) {
} else if (isUnselected || isAvailable) {
log('() => isUnselected');
return await selectLocal(context);
} else if (isSelected) {
@ -133,6 +134,7 @@ class LocalizationService {
return await processData(context);
} else {
log('() => else');
await StorageUtil().ensureInitialization();
return await selectLocal(context);
}
} catch (e) {