diff --git a/lib/app/shared/constants/parameters.dart b/lib/app/shared/constants/parameters.dart index 7b3621f9a..b61591998 100644 --- a/lib/app/shared/constants/parameters.dart +++ b/lib/app/shared/constants/parameters.dart @@ -72,6 +72,9 @@ class Parameters { static const bool supportCryptoAccountOwnershipInDiscoverForEnterpriseMode = true; + static const bool showChainbornCard = false; + static const bool showTezotopiaCard = false; + static const DidKeyType didKeyTypeForEbsiV3 = DidKeyType.ebsiv3; static const DidKeyType didKeyTypeForDefault = DidKeyType.edDSA; static const DidKeyType didKeyTypeForDutch = DidKeyType.jwkP256; diff --git a/lib/credentials/cubit/credentials_cubit.dart b/lib/credentials/cubit/credentials_cubit.dart index a5efbdcd7..4b3b7add6 100644 --- a/lib/credentials/cubit/credentials_cubit.dart +++ b/lib/credentials/cubit/credentials_cubit.dart @@ -751,19 +751,24 @@ class CredentialsCubit extends Cubit { allSubjectTypeForCategory.add(CredentialSubjectType.gender); } case CredentialCategory.advantagesCards: - if (discoverCardsOptions.displayChainborn && - !allSubjectTypeForCategory - .contains(CredentialSubjectType.chainbornMembership)) { - allSubjectTypeForCategory.add( - CredentialSubjectType.chainbornMembership, - ); + if (Parameters.showChainbornCard) { + if (discoverCardsOptions.displayChainborn && + !allSubjectTypeForCategory + .contains(CredentialSubjectType.chainbornMembership)) { + allSubjectTypeForCategory.add( + CredentialSubjectType.chainbornMembership, + ); + } } - if (discoverCardsOptions.displayTezotopia && - !allSubjectTypeForCategory - .contains(CredentialSubjectType.tezotopiaMembership)) { - allSubjectTypeForCategory.add( - CredentialSubjectType.tezotopiaMembership, - ); + + if (Parameters.showTezotopiaCard) { + if (discoverCardsOptions.displayTezotopia && + !allSubjectTypeForCategory + .contains(CredentialSubjectType.tezotopiaMembership)) { + allSubjectTypeForCategory.add( + CredentialSubjectType.tezotopiaMembership, + ); + } } case CredentialCategory.professionalCards: