fix: linter
Deploy banu-front / deploy (push) Successful in 1m28s

This commit is contained in:
sajjadtalkhabi
2026-05-28 15:52:48 +03:30
parent 3f3c66a02d
commit 9660e3fe8f
41 changed files with 1669 additions and 1087 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ export const useAuthStore = defineStore('auth', () => {
const role = computed(() => {
const u = user.value
if (!u) return null
if (Array.isArray(u.roles) && u.roles.length) return u.roles[0]
if (Array.isArray(u.roles) && u.roles.length > 0) return u.roles[0]
return u.role || u.roleName || null
})