experiments in a post-browser web
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: use correct field name for sync status display

The frontend was checking status.lastSync but the backend returns
status.lastSyncTime, causing 'Last sync: Never' to always show.

+2 -2
+2 -2
app/settings/settings.js
··· 734 734 statusLine.textContent = `Status: ${isConfigured ? 'Configured' : 'Not configured'}`; 735 735 statusLine.style.color = isConfigured ? 'var(--text-primary)' : 'var(--text-tertiary)'; 736 736 737 - if (status.lastSync && status.lastSync > 0) { 738 - const lastSyncDate = new Date(status.lastSync); 737 + if (status.lastSyncTime && status.lastSyncTime > 0) { 738 + const lastSyncDate = new Date(status.lastSyncTime); 739 739 lastSyncLine.textContent = `Last sync: ${lastSyncDate.toLocaleString()}`; 740 740 } else { 741 741 lastSyncLine.textContent = 'Last sync: Never';