Skip to content

Commit 1099b10

Browse files
committed
🎨
1 parent 6bcc6ca commit 1099b10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/HabitStatsDialog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class HabitStatsDialog {
120120

121121
const totalCheckIns = this.habit.totalCheckIns || 0;
122122
// 只统计达标的打卡天数
123-
const checkInDays = Object.keys(this.habit.checkIns || {}).filter(dateStr =>
123+
const checkInDays = Object.keys(this.habit.checkIns || {}).filter(dateStr =>
124124
this.isCheckInComplete(dateStr)
125125
).length;
126126

@@ -197,7 +197,7 @@ export class HabitStatsDialog {
197197
.filter(dateStr => this.isCheckInComplete(dateStr))
198198
.sort()
199199
.reverse();
200-
200+
201201
if (completedDates.length === 0) {
202202
return 0;
203203
}

0 commit comments

Comments
 (0)