Skip to content

Issue with logout() #1

Description

@rossjcooper

Hello, I am trying to integrate Customerly into our React project, but I am getting this error when calling logout()

chunk-WZDUAPVE.js?v=6099763a:8786 Uncaught TypeError: Cannot read properties of undefined (reading 'apply')
    at Caller2 (react-live-chat-customerly.js?v=6099763a:85:61)
    at react-live-chat-customerly.js?v=6099763a:166:7
    at react-live-chat-customerly.js?v=6099763a:115:12
    at Object.logout (react-live-chat-customerly.js?v=6099763a:165:5)
const Customerly = useCustomerly();
//...
Customerly.logout();

To clarify I am calling this code within a component inside the CustomerlyProvider, Customerly.load() and update() seem to be working fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions