Open rossjcooper opened 10 months ago
Hi Ross, thank you for reporting the error.
I think the problem is that you didn't load Customerly at that point. Because as you can see the error is cannot read properties of undefined
, so window.customerly
is undefined
in that case.
Are you sure you called .load()
before calling .logout()
?
Thank you
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.