diff --git a/src/layouts/AccountLayout.vue b/src/layouts/AccountLayout.vue index 7179852..27f4e38 100644 --- a/src/layouts/AccountLayout.vue +++ b/src/layouts/AccountLayout.vue @@ -35,8 +35,7 @@ const router = useRouter() const initials = computed(() => { const name = auth.user?.name || '' - const surname = auth.user?.surname || '' - return `${name.charAt(0)}${surname.charAt(0)}` || 'گ' + return name.charAt(0) || 'گ' }) async function handleLogout() { diff --git a/src/stores/authStore.js b/src/stores/authStore.js index 031a9fa..a44d631 100644 --- a/src/stores/authStore.js +++ b/src/stores/authStore.js @@ -11,7 +11,7 @@ export const useAuthStore = defineStore('auth', () => { const isAuthenticated = computed(() => !!accessToken.value) const fullName = computed(() => { if (!user.value) return '' - return `${user.value.name || ''} ${user.value.surname || ''}`.trim() + return `${user.value.name || ''}`.trim() }) function setTokens(access, refresh) {