fix ui
This commit is contained in:
@@ -24,7 +24,9 @@ class Api {
|
||||
|
||||
private headers(): Record<string, string> {
|
||||
const h: Record<string, string> = { 'Content-Type': 'application/json' };
|
||||
if (this.userId) h['X-User-ID'] = String(this.userId);
|
||||
if (this.userId > 0) {
|
||||
h['X-User-ID'] = String(this.userId);
|
||||
}
|
||||
return h;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user