From 9c08b9e7eadbe6267feb99e8e7a54ea67a0b8d8f Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Mon, 20 Mar 2023 19:59:15 +0530 Subject: [PATCH] Bug fixes --- index.html | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 5fd9216..c5d151f 100644 --- a/index.html +++ b/index.html @@ -3752,14 +3752,17 @@ // check whether an equivalent BTC/FLO address is already ssaved if (floCrypto.validateFloID(addressToSave)) { const addrInBtc = btcOperator.convert.legacy2bech(addressToSave) - if (floGlobals.contacts.hasOwnProperty(addrInBtc)) - notify(`Equivalnet Bitcoin address is already saved as ${getContactName(addrInBtc)}`, 'error') - return + if (floGlobals.contacts.hasOwnProperty(addrInBtc)) { + notify(`Equivalent Bitcoin address is already saved as ${getContactName(addrInBtc)}`, 'error') + return + + } } else { const addrInFlo = floCrypto.toFloID(addressToSave) - if (floGlobals.contacts.hasOwnProperty(addrInFlo)) - notify(`Equivalnet FLO address is already saved as ${getContactName(addrInFlo)}`, 'error') - return + if (floGlobals.contacts.hasOwnProperty(addrInFlo)) { + notify(`Equivalent FLO address is already saved as ${getContactName(addrInFlo)}`, 'error') + return + } } messenger.storeContact(addressToSave, name).then(result => { closePopup() @@ -3950,7 +3953,7 @@ renderMessages(floID).then(async () => { if (activeChat.type === 'plain') { if (!floGlobals.pubKeys[floID]) { - getRef('messages_container').prepend(html.node`Converstion is not encrypted until receiver replies`) + getRef('messages_container').prepend(html.node`Conversation is not encrypted until receiver replies`) } } else if (activeChat.type === 'pipeline') { if (!messenger.pipeline[floID].disabled && floGlobals.pipeSigns[floID] && !floGlobals.pipeSigns[floID].has(floDapps.user.id)) {