Skip to content

Commit

Permalink
fix: null being string null "null" instead of actual null
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed Moussa <ahmed.moussa@iohk.io>
  • Loading branch information
hamada147 committed Jun 7, 2024
1 parent 41204e5 commit 89d84ac
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ class PlutoRestoreTask(
}

BackUpRestorationId.ANONCRED.value -> {
Json.decodeFromString<AnonCredentialBackUp>(it.data.base64UrlDecoded)
val json = it.data.base64UrlDecoded
.replace("\"null\"", "null")
Json.decodeFromString<AnonCredentialBackUp>(json)
.toAnonCredential().toStorableCredential()
}

Expand Down

0 comments on commit 89d84ac

Please sign in to comment.