akhaliq HF Staff commited on
Commit
aa0bba7
·
1 Parent(s): a4a6500

update fix

Browse files
Files changed (1) hide show
  1. 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: null,
100
  message: 'Connection error',
101
  };
102
  }
103
  // For other errors, return not authenticated
104
  return {
105
  authenticated: false,
106
- username: null,
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
  }