Skip to content

Commit

Permalink
Update running.tsx
Browse files Browse the repository at this point in the history
Added order to fix heatmap
  • Loading branch information
kmiguel10 committed Oct 9, 2023
1 parent ec55aac commit 419c77a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/home/running/running.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const Running = async () => {
//Fetch daily logs
const { data: dailyData } = await supabase
.from("running")
.select("date, distance");
.select("date, distance")
.order("date", { ascending: true });

const dailyRunData: MileageLog[] =
dailyData?.map((run) => ({
Expand Down

0 comments on commit 419c77a

Please sign in to comment.