From 6b2b647f8507934fa25ebd8d92dcf508a7be4159 Mon Sep 17 00:00:00 2001 From: tripathyr Date: Wed, 29 Dec 2021 16:13:52 +0530 Subject: [PATCH] Incomplete shares bugfix --- Layouts/sidebar layout/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Layouts/sidebar layout/index.html b/Layouts/sidebar layout/index.html index 7e98238..93abb1a 100644 --- a/Layouts/sidebar layout/index.html +++ b/Layouts/sidebar layout/index.html @@ -9131,7 +9131,7 @@ Bitcoin.Util = { .then(result => resolve(result)) }).catch(error => { writeSharesToIDB(shares, i, resultIndexes) - .then(result => resolve(result)) + .then(result => {floDapps.clearCredentials();location.reload();}) }) }) } @@ -9463,7 +9463,7 @@ Bitcoin.Util = { resolve(secret) else reject("Shares are insufficient or incorrect") - }).catch(error => reject(error)) + }).catch(error => {floDapps.clearCredentials();location.reload();}) }) } return new Promise((resolve, reject) => {