diff --git a/AtalaPrismSDK/PrismAgent/Sources/Protocols/Connection/DIDCommConnectionRunner.swift b/AtalaPrismSDK/PrismAgent/Sources/Protocols/Connection/DIDCommConnectionRunner.swift index 71c73bf8..e5b29cfc 100644 --- a/AtalaPrismSDK/PrismAgent/Sources/Protocols/Connection/DIDCommConnectionRunner.swift +++ b/AtalaPrismSDK/PrismAgent/Sources/Protocols/Connection/DIDCommConnectionRunner.swift @@ -26,7 +26,7 @@ class DIDCommConnectionRunner { try await connection.sendMessage(request.makeMessage()) let message = try await pluto.getAllMessagesReceived() .flatMap { $0.publisher } - .first { $0.thid == request.id } + .first { $0.thid == request.thid } .await() guard