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.
Hello, I am trying to integrate Customerly into our React project, but I am getting this error when calling
logout()To clarify I am calling this code within a component inside the
CustomerlyProvider,Customerly.load()andupdate()seem to be working fine.