From 087ddd0ed8197d549daf62d49fc5e6ea4c207dad Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Thu, 16 Feb 2023 20:35:25 +0530 Subject: [PATCH] better error handling --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index f57241e..4b54f04 100644 --- a/index.html +++ b/index.html @@ -1174,6 +1174,7 @@ uiGlobals.connectionErrorNotification.forEach(notification => notification.remove()) notify('We are back online.', 'success') location.reload() + uiGlobals.connectionErrorNotification = [] }) // Use instead of document.getElementById function getRef(elementId) { @@ -3864,7 +3865,7 @@ btcOperator.parseTransaction(floGlobals.pipelineTxHex).then((details) => { console.log(details) const { inputs, outputs, fee } = details - const { s: signsDone, r: minSignsRequired, t: totalMembers } = inputs[0].signed + const { s: signsDone, r: minSignsRequired, t: totalMembers } = inputs[0]?.signed || {} const pendingSigns = minSignsRequired - signsDone if (minSignsRequired) { getRef('messages_container').prepend(html.node`