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