Skip to content

Commit

Permalink
Fix WalletApp payload decryption
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-lsvk committed Oct 16, 2023
1 parent 4c02bee commit 871f0d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class SessionRequestPresenter: ObservableObject {
var message: String {
let message = try? sessionRequest.params.get([String].self)
let decryptedMessage = message.map { String(data: Data(hex: $0.first ?? ""), encoding: .utf8) }
return (decryptedMessage ?? "Failed to decrypt") ?? "Failed to decrypt"
return (decryptedMessage ?? String(describing: sessionRequest.params.value)) ?? String(describing: sessionRequest.params.value)
}

@Published var showError = false
Expand Down

0 comments on commit 871f0d8

Please sign in to comment.