diff --git a/frontend/src/pages/sessaoWhatsapp/ModalQrCode.vue b/frontend/src/pages/sessaoWhatsapp/ModalQrCode.vue index 622bd2e2..360e8df7 100644 --- a/frontend/src/pages/sessaoWhatsapp/ModalQrCode.vue +++ b/frontend/src/pages/sessaoWhatsapp/ModalQrCode.vue @@ -76,17 +76,10 @@ export default { this.$emit('update:abrirModalQR', false) }, async fetchSession (channel) { + await RequestNewQrCode(channel.id) const { data } = await GetWhatSession(channel.id) this.qrCode = data.qrcode this.handlerModalQrCode() - if (!this.qrCode) { - // setTimeout(() => { - // if (!this.qrCode) { - // this.$emit('modalQrCode:qrCodeInexistente') - // } - // }, 3000) - await RequestNewQrCode(channel.id) - } }, handlerModalQrCode () { socket.on(`${usuario.tenantId}:whatsappSession`, data => {