Fix: TDZ 'u' в UserProfileView console.log
This commit is contained in:
parent
2d560694c1
commit
e6d8ad0ee0
@ -221,7 +221,7 @@ const UserProfileView = {
|
|||||||
API.UserApi.get(this.userId),
|
API.UserApi.get(this.userId),
|
||||||
API.ReviewApi.stats(this.userId).catch(() => ({})),
|
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;
|
this.data = user.user || user;
|
||||||
const u = this.data;
|
const u = this.data;
|
||||||
const init = ((u.name || u.email || '?')[0] || '?').toUpperCase();
|
const init = ((u.name || u.email || '?')[0] || '?').toUpperCase();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user