Added error handling to Crisp.

This commit is contained in:
Patrick Fic
2021-05-27 21:13:36 -07:00
parent 7d82fb8f04
commit 5da8c77b3a
2 changed files with 22 additions and 1 deletions

View File

@@ -57,6 +57,23 @@ ${this.state.error.stack}
if (this.state.hasErrored === true) {
logImEXEvent("error_boundary_rendered", { error, info });
window.$crisp.push([
"set",
"session:event",
[
[
[
"error_boundary",
{
error: this.state.error.message,
stack: this.state.error.stack,
},
"red",
],
],
],
]);
return (
<div>
<Result