diff --git a/src/api/integrations/channel/meta/whatsapp.business.service.ts b/src/api/integrations/channel/meta/whatsapp.business.service.ts index 1e4808c156..cb5b7d6d4a 100644 --- a/src/api/integrations/channel/meta/whatsapp.business.service.ts +++ b/src/api/integrations/channel/meta/whatsapp.business.service.ts @@ -387,7 +387,7 @@ export class BusinessStartupService extends ChannelStartupService { let messageRaw: any; let pushName: any; - if (received.contacts) pushName = received.contacts[0].profile.name; + if (received.contacts) pushName = received.contacts[0]?.profile?.name; if (received.messages) { const message = received.messages[0]; // Añadir esta línea para definir message