Skip to content

Commit

Permalink
docs: micro changes
Browse files Browse the repository at this point in the history
  • Loading branch information
VienDinhCom committed Nov 8, 2020
1 parent edf9443 commit 9287fa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ interface Flashcard extends SuperMemoItem {

function practice(flashcard: Flashcard, grade: SuperMemoGrade): Flashcard {
const { interval, repetition, efactor } = supermemo(flashcard, grade);
const dueDate = dayjs(flashcard.dueDate).add(interval, 'day').toISOString();
const dueDate = dayjs(Date.now())
.add(interval, 'day')
.toISOString();

return { ...flashcard, interval, repetition, efactor, dueDate };
}
Expand Down

0 comments on commit 9287fa8

Please sign in to comment.