feat: wait for HWW to authenticate, then open dialog

This commit is contained in:
Vlad Stan
2022-08-03 13:50:07 +03:00
parent 1089be017b
commit 5414e3e772
3 changed files with 25 additions and 12 deletions
@@ -88,7 +88,8 @@ async function payment(path) {
}
if (!this.serialSignerRef.isAuthenticated()) {
await this.serialSignerRef.hwwShowPasswordDialog()
return
const authenticated = await this.serialSignerRef.isAuthenticating()
if (!authenticated) return
}
await this.createPsbt()