()
| 8 | const user = useAuth(); |
| 9 | |
| 10 | const toggleChat = () => { |
| 11 | window.$crisp?.push(["set", "user:nickname", [user.name]]); |
| 12 | window.$crisp?.push(["set", "user:email", [user.email]]); |
| 13 | window.$crisp?.push(["set", "user:avatar", [user.avatarUrl]]); |
| 14 | window.$crisp?.push(["do", "chat:show"]); |
| 15 | window.$crisp?.push(["do", "chat:open"]); |
| 16 | }; |
| 17 | |
| 18 | return { toggleChat }; |
| 19 | } |
nothing calls this directly
no outgoing calls
no test coverage detected