Skip to content

Commit

Permalink
Fix: Convert issue credential record model to dict before accessing c…
Browse files Browse the repository at this point in the history
…redential field

Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed May 14, 2024
1 parent 894e7c9 commit 98d7ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eudi_wallet/ebsi/entry_points/server/routes/v2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ async def handle_config_get_all_credential_offers(
[
{
**credential_offer_entity.to_dict(),
"credentialLabel": credential_offer_entity.get("credential", {})
"credentialLabel": credential_offer_entity.to_dict().get("credential", {})
.get("type", [])[-1]
.removesuffix("SdJwt"),
}
Expand Down

0 comments on commit 98d7ede

Please sign in to comment.