Skip to content

Commit

Permalink
refactor: External issuer discover issue fixed #2310
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Mar 25, 2024
1 parent 69df20d commit d0da9ce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
5 changes: 3 additions & 2 deletions lib/credentials/cubit/credentials_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -900,10 +900,11 @@ class CredentialsCubit extends Cubit<CredentialsState> {
}
}

// Generate list of external issuer from the profile
/// Generate list of external issuer from the profile
dummies[category] =
getDummiesFromExternalIssuerList(category, externalIssuers ?? []);
// add dummies from the category

/// add dummies from the category
dummies[category]?.addAll(
requiredDummySubjects
.map((item) => item.dummyCredential(profileSetting))
Expand Down
15 changes: 10 additions & 5 deletions lib/dashboard/discover/view/discover_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,16 @@ class _DiscoverPageState extends State<DiscoverPage> {
padding: EdgeInsets.zero,
backgroundColor: Theme.of(context).colorScheme.transparent,
body: BlocListener<ProfileCubit, ProfileState>(
listenWhen: (previous, current) =>
current.model.profileSetting.selfSovereignIdentityOptions
.customOidc4vcProfile.vcFormatType !=
previous.model.profileSetting.selfSovereignIdentityOptions
.customOidc4vcProfile.vcFormatType,
listenWhen: (previous, current) {
// if (current.model.profileSetting.selfSovereignIdentityOptions
// .customOidc4vcProfile.vcFormatType !=
// previous.model.profileSetting.selfSovereignIdentityOptions
// .customOidc4vcProfile.vcFormatType) {
// return true;
// }

return true;
},
listener: (context, state) {
onRefresh();
},
Expand Down

0 comments on commit d0da9ce

Please sign in to comment.