Fix: TDZ 'u' в UserProfileView console.log

This commit is contained in:
root 2026-08-21 12:08:20 +00:00
parent 2d560694c1
commit e6d8ad0ee0

View File

@ -221,7 +221,7 @@ const UserProfileView = {
API.UserApi.get(this.userId),
API.ReviewApi.stats(this.userId).catch(() => ({})),
]);
console.log('[UserProfile] loaded:', u && u.id, 'user:', JSON.stringify(user).slice(0,200), 'stats:', JSON.stringify(stats));
console.log('[UserProfile] loaded: user:', JSON.stringify(user).slice(0,200), 'stats:', JSON.stringify(stats));
this.data = user.user || user;
const u = this.data;
const init = ((u.name || u.email || '?')[0] || '?').toUpperCase();