Отключить мультиаккаунтность и уточнить статусы профиля

This commit is contained in:
AidarKC
2026-11-27 13:22:15 +03:00
parent ae430e84c7
commit 91a8bb9c3c
40 changed files with 312 additions and 383 deletions
-1
View File
@@ -260,7 +260,6 @@ export async function loadUserProfileCard(login) {
spiritualPath: fields.spiritual_path || '',
accountRole: String(snapshot?.accountRole || '').trim().toLowerCase(),
shineStatus: String(snapshot?.shineStatus || '').trim().toLowerCase(),
gender: String(snapshot?.gender || 'unknown').trim().toLowerCase() || 'unknown',
// Compatibility aliases for older graph/card consumers; values come only from the new profile schema.
official: String(snapshot?.accountRole || '').trim().toLowerCase() === 'primary',
shine: String(snapshot?.shineStatus || '').trim().toLowerCase() === 'shining',