diff --git a/frontend/src/components/InteractiveBackground.tsx b/frontend/src/components/InteractiveBackground.tsx index 74adf1a..cab7181 100644 --- a/frontend/src/components/InteractiveBackground.tsx +++ b/frontend/src/components/InteractiveBackground.tsx @@ -46,7 +46,7 @@ const InteractiveBackground = () => { default: 'bounce', }, random: false, - speed: 2, + speed: 0.5, straight: false, }, number: { diff --git a/frontend/src/pages/dashboard.tsx b/frontend/src/pages/dashboard.tsx index 633fd8e..854e214 100644 --- a/frontend/src/pages/dashboard.tsx +++ b/frontend/src/pages/dashboard.tsx @@ -23,7 +23,7 @@ const Dashboard = () => { useEffect(() => { if(hasPermission(currentUser, 'READ_EVENTS')) { - dispatch(fetchEvents({ query: '?sort=createdAt,DESC&limit=5' })); + dispatch(fetchEvents({ query: '?sort=start_datetime,ASC&limit=5' })); } if(hasPermission(currentUser, 'READ_GUESTS')) { dispatch(fetchGuests({ query: '' })); @@ -31,7 +31,7 @@ const Dashboard = () => { }, [dispatch, currentUser]); const upcomingEvents = events.filter( - (event) => new Date(event.date) > new Date() + (event) => new Date(event.start_datetime) > new Date() ); return ( @@ -97,18 +97,18 @@ const Dashboard = () => {