Skip to content

Commit

Permalink
check format auto when displaying credential list
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkbee1 committed Dec 3, 2024
1 parent f0fd8f6 commit 2183426
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ class _HomeCredentialCategoryListState
.toList();

if (!formatsSupported
.contains(element.getFormat) ||
element.getFormat == 'auto') {
.contains(element.getFormat) &&
element.getFormat != 'auto' &&
!formatsSupported.contains('auto')) {
return false;
}
}
Expand Down
4 changes: 1 addition & 3 deletions lib/splash/bloclisteners/blocklisteners.dart
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,6 @@ final enterpriseBlocListener = BlocListener<EnterpriseCubit, EnterpriseState>(
await context.read<CredentialsCubit>().generateCryptoAccountsCards(
cryptoAccounts,
);
LoadingView().hide();
}
}
if (state.status == AppStatus.addEnterpriseAccount ||
Expand Down Expand Up @@ -956,6 +955,7 @@ final enterpriseBlocListener = BlocListener<EnterpriseCubit, EnterpriseState>(
profileSetting.generalOptions.companyName,
);
}
LoadingView().hide();

final confirm = await showDialog<bool>(
context: context,
Expand All @@ -974,15 +974,13 @@ final enterpriseBlocListener = BlocListener<EnterpriseCubit, EnterpriseState>(
manageNetworkCubit: context.read<ManageNetworkCubit>(),
status: state.status,
);
LoadingView().hide();
} else {
/// Need to remove the enterprise email from secure storage
/// because we may think later that the entreprise profile is
/// already installed.
await getSecureStorage.delete(
SecureStorageKeys.enterpriseEmail,
);
LoadingView().hide();
}
}
}
Expand Down

0 comments on commit 2183426

Please sign in to comment.