Incomplete shares bugfix

This commit is contained in:
tripathyr 2021-12-29 16:15:27 +05:30 committed by GitHub
parent 6b2b647f85
commit 5fb9dea9db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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