diff --git a/src/components/pages/audit/audit.page.jsx b/src/components/pages/audit/audit.page.jsx index 45afbec..4612080 100644 --- a/src/components/pages/audit/audit.page.jsx +++ b/src/components/pages/audit/audit.page.jsx @@ -146,8 +146,13 @@ function NoAuditAccess({ features }) { size="large" type="primary" onClick={() => { + window.$crisp.push(["do", "chat:open"]); window.$crisp.push(["do", "message:thread:start", ["Subscription Upgrade - RPS Audit"]]); - window.$crisp.push(["set", "message:send", ["I would like to subscribe to the RPS Audit feature."]]); + window.$crisp.push([ + "do", + "message:send", + ["text", "Hello, I would like to subscribe to the RPS audit feature."] + ]); }} > Subscribe @@ -156,6 +161,7 @@ function NoAuditAccess({ features }) { size="large" disabled={features.audit_trial} onClick={() => { + window.$crisp.push(["do", "chat:open"]); window.$crisp.push(["set", "session:event", [[["trial_request", { feature: "audit" }]]]]); window.$crisp.push(["do", "message:thread:start", ["Trial Request - RPS Audit"]]); window.$crisp.push([ @@ -163,7 +169,6 @@ function NoAuditAccess({ features }) { "message:send", ["text", "Hello, I would like to request a trial of the RPS audit feature."] ]); - window.$crisp.push(["do", "chat:open"]); }} > {features.audit_trial ? `(Trial ended on ${features.audit_trial})` : "Request Trial"}