mirror of
https://github.com/ManInDark/HabitTrove.git
synced 2026-01-21 06:34:30 +01:00
fix
This commit is contained in:
@@ -11,9 +11,9 @@ interface HabitStreakProps {
|
||||
}
|
||||
|
||||
export default function HabitStreak({ habits }: HabitStreakProps) {
|
||||
const { settings } = useSettings()
|
||||
// Get the last 30 days of data
|
||||
const dates = Array.from({ length: 30 }, (_, i) => {
|
||||
const { settings } = useSettings()
|
||||
const d = getDateInTimezone(new Date(), settings.system.timezone)
|
||||
d.setDate(d.getDate() - i)
|
||||
return d.toISOString().split('T')[0]
|
||||
|
||||
Reference in New Issue
Block a user