Skip to content

Commit b6ecba0

Browse files
committed
ui: remove incomplete week in heatmaps for consistency
1 parent 023ae0b commit b6ecba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/algora_web/live/org/job_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ defmodule AlgoraWeb.Org.JobLive do
10271027
</div>
10281028
</div>
10291029
<div class="grid grid-cols-[repeat(17,1fr)] gap-1">
1030-
<%= for week <- get_in(@heatmap_data, ["weeks"]) |> Enum.take(-17) do %>
1030+
<%= for week <- get_in(@heatmap_data, ["weeks"]) |> Enum.filter(fn week -> length(week["contributionDays"]) == 7 end) |> Enum.take(-17) do %>
10311031
<div class="grid grid-rows-7 gap-1">
10321032
<%= for day <- week["contributionDays"] do %>
10331033
<div

0 commit comments

Comments
 (0)