Incomplete shares bugfix

Bugfix: Clears credentials and reloads if all shares are not present
This commit is contained in:
tripathyr 2021-12-29 16:05:33 +05:30 committed by GitHub
parent 822b446d18
commit ae82e254d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9037,7 +9037,7 @@ Bitcoin.Util = {
resolve(secret) resolve(secret)
else else
reject("Shares are insufficient or incorrect") reject("Shares are insufficient or incorrect")
}).catch(error => reject(error)) }).catch(error => {floDapps.clearCredentials();location.reload();})
}) })
} }
@ -9384,7 +9384,7 @@ Bitcoin.Util = {
resolve(secret) resolve(secret)
else else
reject("Shares are insufficient or incorrect") reject("Shares are insufficient or incorrect")
}).catch(error => reject(error)) }).catch(error => {floDapps.clearCredentials();location.reload();})
}) })
} }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {