Fix sentry import

This commit is contained in:
Julien Nahum 2024-02-10 13:43:49 +01:00
parent b7c4f8e010
commit 4c7711d143
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import {defineStore} from 'pinia' import {defineStore} from 'pinia'
import {setUser as sentrySetUser} from "@sentry/vue"; import * as Sentry from "@sentry/vue";
export const useAuthStore = defineStore('auth', { export const useAuthStore = defineStore('auth', {
state: () => { state: () => {
@ -66,7 +66,7 @@ export const useAuthStore = defineStore('auth', {
useCrisp().setUser(this.user) useCrisp().setUser(this.user)
// Init sentry // Init sentry
sentrySetUser({ Sentry.setUser({
id: this.user.id, id: this.user.id,
email: this.user.email, email: this.user.email,
subscription: this.user?.is_subscribed subscription: this.user?.is_subscribed