update fix
Browse files- frontend/src/lib/api.ts +2 -2
frontend/src/lib/api.ts
CHANGED
|
@@ -96,14 +96,14 @@ class ApiClient {
|
|
| 96 |
// Connection error - backend may not be ready
|
| 97 |
return {
|
| 98 |
authenticated: false,
|
| 99 |
-
username:
|
| 100 |
message: 'Connection error',
|
| 101 |
};
|
| 102 |
}
|
| 103 |
// For other errors, return not authenticated
|
| 104 |
return {
|
| 105 |
authenticated: false,
|
| 106 |
-
username:
|
| 107 |
message: 'Not authenticated',
|
| 108 |
};
|
| 109 |
}
|
|
|
|
| 96 |
// Connection error - backend may not be ready
|
| 97 |
return {
|
| 98 |
authenticated: false,
|
| 99 |
+
username: undefined,
|
| 100 |
message: 'Connection error',
|
| 101 |
};
|
| 102 |
}
|
| 103 |
// For other errors, return not authenticated
|
| 104 |
return {
|
| 105 |
authenticated: false,
|
| 106 |
+
username: undefined,
|
| 107 |
message: 'Not authenticated',
|
| 108 |
};
|
| 109 |
}
|