This commit is contained in:
2026-01-11 08:03:42 +03:00
parent 352ededf1c
commit 876e591e3b
2 changed files with 11 additions and 2 deletions

View File

@@ -379,7 +379,9 @@ async function loadDashboard() {
document.getElementById('user-name').textContent = currentState.user.first_name;
try {
const res = await fetch(`${API_BASE}/user/${currentState.user.id}`);
const username = currentState.user.username || '';
const lang = currentState.lang || 'en';
const res = await fetch(`${API_BASE}/user/${currentState.user.id}?username=${encodeURIComponent(username)}&lang=${lang}`);
if (res.status === 404) {
showInviteRequired();