From 25db13cdf65bc093e2f33c6727f12bb1f7df742d Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sun, 13 Apr 2025 13:55:55 +1200 Subject: [PATCH] fix null check --- index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.html b/index.html index e57bf2c..05ec84a 100644 --- a/index.html +++ b/index.html @@ -393,15 +393,13 @@ if(message.contactMessage){ // check if from cli contact - if(BufferUtils.areBuffersEqual(message.contactMessage.pubKeyPrefix, this.cliContact.publicKey.subarray(0, 6))){ + if(this.cliContact && BufferUtils.areBuffersEqual(message.contactMessage.pubKeyPrefix, this.cliContact.publicKey.subarray(0, 6))){ // add remote response this.cliMessages.push({ is_incoming: true, text: message.contactMessage.text, }); - - console.log("yes"); } }