Skip to content

Commit

Permalink
tracking: change parameter since_date to length
Browse files Browse the repository at this point in the history
  • Loading branch information
salvoilmiosi committed Sep 27, 2024
1 parent a5b8ecc commit 015e0bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Scenes/Tracking/Tracking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export default function TrackingScene() {
return url;
}, []);

const sinceDate = new URLSearchParams(window.location.search).get('since_date') || '';
const trackingData = useFetch<TrackingData>(bangServerUrl + '?since_date=' + sinceDate);
const length = new URLSearchParams(window.location.search).get('length') || '';
const trackingData = useFetch<TrackingData>(bangServerUrl + '?length=' + length);

return <div className="flex flex-col items-center">
{trackingData && <TrackingDataChart data={trackingData} /> }
Expand Down

0 comments on commit 015e0bf

Please sign in to comment.