Skip to content

Commit

Permalink
refactor: Add missing issuer in discover #3046
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Nov 4, 2024
1 parent 63c1d18 commit d17fdcd
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions lib/credentials/cubit/credentials_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ class CredentialsCubit extends Cubit<CredentialsState> {
/// We always have the associated Adress credential
/// in the discover since "Do not remove the GET a crypto account
/// in the Discover #2649"
/// in the Discover #2649"
if (isCurrentBlockchainAccount) {
/// if already added do not add
Expand All @@ -1073,9 +1073,7 @@ class CredentialsCubit extends Cubit<CredentialsState> {
/// do not add if format matched
/// there can be same credentials with different format
} else {
if (!alreadyAdded) {
requiredCreds.add(credInfo);
}
requiredCreds.add(credInfo);
}
}
}
Expand All @@ -1087,14 +1085,7 @@ class CredentialsCubit extends Cubit<CredentialsState> {
!isCurrentBlockchainAccount) {
/// do not add if current blockchain acccount does not match
} else {
final alreadyAdded = requiredCreds.any(
(item) =>
item.credentialType == credInfo.credentialType &&
item.formatType == credInfo.formatType,
);
if (!alreadyAdded) {
requiredCreds.add(credInfo);
}
requiredCreds.add(credInfo);
}
}
}
Expand Down

0 comments on commit d17fdcd

Please sign in to comment.