Skip to content

Commit bc3de08

Browse files
committed
fix: 🐛 block
1 parent c8fec2e commit bc3de08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/whatsapp/event-handler/login-event-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export default class LoginEventHandler extends WhatsAppBase { // FIXME: I have n
7676
log.verbose(PRE, 'onWhatsAppReady()')
7777
this.hasLogin = true
7878
this.clearQrcodeOrLoginCheckTimer()
79+
const whatsapp = this.getWhatsAppClient()
7980
try {
80-
const whatsapp = this.getWhatsAppClient()
8181
this.botId = whatsapp.info.wid._serialized
8282
await this.manager.initCache(this.botId)
8383
} catch (error) {

0 commit comments

Comments
 (0)