diff --git a/lib/app/shared/helper_functions/helper_functions.dart b/lib/app/shared/helper_functions/helper_functions.dart index 702277f7b..70a1debe4 100644 --- a/lib/app/shared/helper_functions/helper_functions.dart +++ b/lib/app/shared/helper_functions/helper_functions.dart @@ -1775,9 +1775,8 @@ List 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()); }