Skip to content

Commit 1f7891e

Browse files
author
CloudLobster
committed
fix: read attention enabled from config.enabled not root.enabled
1 parent 8c3ddb5 commit 1f7891e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/pages/Dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export default function Dashboard() {
280280
useEffect(() => {
281281
if (!auth?.token) return;
282282
apiFetch('/api/inbox?folder=inbox&limit=1', auth.token).then(r => r.json()).then(d => setSidebarUnread(d.unread || 0)).catch(() => {});
283-
apiFetch('/api/attention/config', auth.token).then(r => r.json()).then(d => setAttentionConfigured(!!d.enabled)).catch(() => setAttentionConfigured(true));
283+
apiFetch('/api/attention/config', auth.token).then(r => r.json()).then(d => setAttentionConfigured(!!d.config?.enabled)).catch(() => setAttentionConfigured(true));
284284
}, [auth?.token]);
285285

286286
// Auto-detect Basename upgrade for 0x handle users

0 commit comments

Comments
 (0)