Skip to content

Commit

Permalink
refactor: remove console log from groupStopTimesByHour function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedhossamdev committed Nov 20, 2024
1 parent b3fc0b4 commit 63564ec
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/routes/stops/[stopID]/schedule/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@
expandedItems = schedules.map((_, index) => false);
}
// TODO: ADD AM AND PM LOGIC
function groupStopTimesByHour(stopTimes) {
const grouped = {};
for (let stopTime of stopTimes) {
console.log(stopTime);
const date = new Date(stopTime.arrivalTime);
const hour = date.getHours();
if (!grouped[hour]) grouped[hour] = [];
Expand Down

0 comments on commit 63564ec

Please sign in to comment.