diff --git a/services/gunDB/contact-api/actions.js b/services/gunDB/contact-api/actions.js index 9fe5300c..160f6934 100644 --- a/services/gunDB/contact-api/actions.js +++ b/services/gunDB/contact-api/actions.js @@ -408,18 +408,8 @@ const sendHandshakeRequest = async (recipientPublicKey, gun, user, SEA) => { console.log('sendHR() -> before mySecret') const mySecret = await SEA.secret(user._.sea.epub, user._.sea) - if (typeof mySecret !== 'string') { - throw new TypeError( - "sendHandshakeRequest() -> typeof mySecret !== 'string'" - ) - } console.log('sendHR() -> before ourSecret') const ourSecret = await SEA.secret(recipientEpub, user._.sea) - if (typeof ourSecret !== 'string') { - throw new TypeError( - "sendHandshakeRequest() -> typeof ourSecret !== 'string'" - ) - } // check if successful handshake is present