From 387c33447543b6286023ac6150b32ea61a4c0ffa Mon Sep 17 00:00:00 2001 From: ahmedhanafy725 Date: Mon, 27 May 2024 10:57:44 +0300 Subject: [PATCH] Initialize the payload in case no payload is sent --- packages/rmb_direct_client/lib/client.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/rmb_direct_client/lib/client.ts b/packages/rmb_direct_client/lib/client.ts index b85aeb0c33..e1bbc62006 100644 --- a/packages/rmb_direct_client/lib/client.ts +++ b/packages/rmb_direct_client/lib/client.ts @@ -313,6 +313,8 @@ class Client { } else { clientEnvelope.plain = new Uint8Array(Buffer.from(requestData)); } + } else { + clientEnvelope.plain = new Uint8Array(); } clientEnvelope.relays = this.twin.relay.split("_");