Multiple bug fixing

This commit is contained in:
Julien Nahum
2024-02-10 12:20:45 +01:00
parent f2916b9e31
commit 91911bc6e5
16 changed files with 51 additions and 51 deletions

17
client/stores/auth.js vendored
View File

@@ -1,4 +1,5 @@
import {defineStore} from 'pinia'
import {setUser as sentrySetUser} from "@sentry/vue";
export const useAuthStore = defineStore('auth', {
state: () => {
@@ -65,18 +66,16 @@ export const useAuthStore = defineStore('auth', {
useCrisp().setUser(this.user)
// Init sentry
// console.log(process)
// $sentry.configureScope((scope) => {
// scope.setUser({
// id: this.user.id,
// email: this.user.email,
// subscription: this.user?.is_subscribed
// })
// })
sentrySetUser({
id: this.user.id,
email: this.user.email,
subscription: this.user?.is_subscribed
})
},
logout() {
opnFetch('logout', {method: 'POST'}).catch((error) => {})
opnFetch('logout', {method: 'POST'}).catch((error) => {
})
this.user = null
this.setToken(null)

View File

@@ -1,7 +1,5 @@
import { defineStore } from 'pinia'
export const useWorkingFormStore = defineStore('working_form', {
state: () => ({
content: null,