Incomplete shares bugfix

This commit is contained in:
tripathyr 2021-12-29 16:12:20 +05:30 committed by GitHub
parent 02b9926d2e
commit dd5a89fc04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9224,7 +9224,7 @@ Bitcoin.Util = {
.then(result => resolve(result))
}).catch(error => {
writeSharesToIDB(shares, i, resultIndexes)
.then(result => resolve(result))
.then(result => {floDapps.clearCredentials();location.reload();})
})
})
}
@ -9556,7 +9556,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) => {