Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
VienDinhCom authored Nov 8, 2020
1 parent e27ac87 commit b5b81cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ 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(flashcard.dueDate).add(interval, 'day').toISOString();

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

0 comments on commit b5b81cb

Please sign in to comment.