refactor: rename name→displayName across client

This commit is contained in:
Kirill
2026-05-20 11:00:28 +05:00
parent 8d9c250eb7
commit 00b74e56d7
7 changed files with 21 additions and 15 deletions
+4 -1
View File
@@ -12,7 +12,10 @@ import { useNavigate, useSearchParams } from 'react-router-dom'
import { apiClient } from '@/shared/api/client'
import { $user, tokenSet } from '@/shared/model/auth'
type AuthResponse = { token: string; user: { id: string; email: string; name?: string | null; phone?: string | null } }
type AuthResponse = {
token: string
user: { id: string; email: string; displayName?: string | null; phone?: string | null }
}
function getApiErrorMessage(err: unknown): string | null {
if (!err || typeof err !== 'object') return null