diff --git a/src/core/engines/gows/session.gows.core.ts b/src/core/engines/gows/session.gows.core.ts index 8de8053d..80aa4c26 100644 --- a/src/core/engines/gows/session.gows.core.ts +++ b/src/core/engines/gows/session.gows.core.ts @@ -951,8 +951,8 @@ export class WhatsappSessionGoWSCore extends WhatsappSession { const data = response.toObject(); const info = data.infos[0]; return { - numberExists: info.registered, - chatId: toCusFormat(info.jid), + numberExists: info?.registered || false, + chatId: toCusFormat(info?.jid || null), }; }