Skip to content

Commit

Permalink
add since_date query param parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
salvoilmiosi committed Sep 23, 2024
1 parent 010bde4 commit 2051804
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Scenes/Tracking/Tracking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ export default function TrackingScene() {
return url;
}, []);

const sinceDate = ''; // TODO add state

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

return <div className="flex flex-col items-center">
Expand Down

0 comments on commit 2051804

Please sign in to comment.