Fix
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user