Skip to content

Commit

Permalink
fix: Solve presentation issue for Test 13 when vc format is auto #2791
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Jul 17, 2024
1 parent 85feb72 commit 192d152
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/app/shared/helper_functions/helper_functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1775,9 +1775,8 @@ List<String> getStringCredentialsForToken({
required ProfileCubit profileCubit,
}) {
final credentialList = credentialsToBePresented.map((item) {
final isVcSdJWT = profileCubit.state.model.profileSetting
.selfSovereignIdentityOptions.customOidc4vcProfile.vcFormatType ==
VCFormatType.vcSdJWT;
final isVcSdJWT = item.getFormat == VCFormatType.vcSdJWT.vcValue;

if (isVcSdJWT) {
return item.selectiveDisclosureJwt ?? jsonEncode(item.toJson());
}
Expand Down

0 comments on commit 192d152

Please sign in to comment.