Skip to content

Commit 9287fa8

Browse files
committed
docs: micro changes
1 parent edf9443 commit 9287fa8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ interface Flashcard extends SuperMemoItem {
9090

9191
function practice(flashcard: Flashcard, grade: SuperMemoGrade): Flashcard {
9292
const { interval, repetition, efactor } = supermemo(flashcard, grade);
93-
const dueDate = dayjs(flashcard.dueDate).add(interval, 'day').toISOString();
93+
const dueDate = dayjs(Date.now())
94+
.add(interval, 'day')
95+
.toISOString();
9496

9597
return { ...flashcard, interval, repetition, efactor, dueDate };
9698
}

0 commit comments

Comments
 (0)