Skip to content

Commit

Permalink
fix: remove timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
arein committed Jan 3, 2024
1 parent 87ab9f8 commit 55be47e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/scaffold/src/views/w3m-email-verify-otp-view/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ export class W3mEmailVerifyOtpView extends LitElement {
console.log('w3m-email-verify-otp-view: Connecting with OTP', otp)
await this.emailConnector.provider.connectOtp({ otp })
console.log('w3m-email-verify-otp-view: Connected with OTP', otp)
const bazooka = setTimeout(() => {
console.log('closing modal')
ModalController.close()
console.log('closed modal')
}, 5000)
// const bazooka = setTimeout(() => {
// console.log('closing modal')
// ModalController.close()
// console.log('closed modal')
// }, 5000)

await ConnectionController.connectExternal(this.emailConnector)
console.log('closing modal')
Expand All @@ -124,7 +124,7 @@ export class W3mEmailVerifyOtpView extends LitElement {
event: 'CONNECT_SUCCESS',
properties: { method: 'email' }
})
clearTimeout(bazooka)
// clearTimeout(bazooka)
}
}
} catch (error) {
Expand Down

0 comments on commit 55be47e

Please sign in to comment.