Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/StreakWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function StreakWidget({
}, [currentStreak]);

// Construct chart data for the streak history chart
const chartData = dailyActivity.map((day) => ({
const chartData = (dailyActivity ?? []).map((day) => ({
label: day.day,
value: day.active ? 1 : 0,
color: day.active ? '#f59e0b' : '#e5e7eb', // warning yellow/orange or gray
Expand Down Expand Up @@ -121,7 +121,7 @@ export function StreakWidget({
{day.active ? (
<Flame className="size-4 fill-white text-white animate-bounce-subtle" />
) : (
day.day.charAt(0)
day.day[0]
)}
</div>
<span className="text-[10px] text-muted-foreground font-semibold">
Expand Down
Loading