Footer enhancements and performance optimizations #9

Merged
deco merged 10 commits from footer-enhancements into main 2025-07-22 23:01:23 +03:00
Showing only changes of commit 423897d1bf - Show all commits

View file

@ -80,8 +80,12 @@ export default function Home() {
activeRes.json() activeRes.json()
]); ]);
setStreams(streamsData); // Handle both old and new API response formats
setActiveSources(activeData); const streams = streamsData.success ? streamsData.data : streamsData;
const activeSources = activeData.success ? activeData.data : activeData;
setStreams(streams);
setActiveSources(activeSources);
} catch (error) { } catch (error) {
console.error('Error fetching data:', error); console.error('Error fetching data:', error);
showError('Failed to Load Data', 'Could not fetch streams. Please refresh the page.'); showError('Failed to Load Data', 'Could not fetch streams. Please refresh the page.');