Bug fixes & UI polish 💅

This commit is contained in:
Julien Nahum
2023-10-13 12:29:34 +02:00
parent f0939f3992
commit aebe5f5738
4 changed files with 21 additions and 10 deletions

View File

@@ -4,6 +4,10 @@ import * as Sentry from '@sentry/vue'
export function initCrisp (user) {
return new Promise((resolve, reject) => {
const intervalId = window.setInterval(function () {
if (!user) {
resolve()
return
}
if (window.$crisp) {
window.$crisp.push(['set', 'user:email', user.email])
window.$crisp.push(['set', 'user:nickname', user.name])
@@ -19,7 +23,7 @@ export function initCrisp (user) {
}
export function initSentry (user) {
if (!window.config.sentry_dsn) {
if (!window.config.sentry_dsn || !user) {
return
}
Sentry.configureScope((scope) => {