diff --git a/src/pages/dashboard.jsx b/src/pages/dashboard.jsx index 9090b0d5..c65a434d 100644 --- a/src/pages/dashboard.jsx +++ b/src/pages/dashboard.jsx @@ -127,7 +127,9 @@ export default function Dashboard() { const intervalId = setInterval(() => { request(`${process.env.NEXT_PUBLIC_API_URL}/activityFeed/`, 'GET', null).then(response => { //console.log(response) - setActivities(response.activityFeed); + if (response.activityFeed.length > 0) { + setActivities(response.activityFeed); + } }) .catch(error => { console.error('Error fetching feed data: ', error);