From b5b81cbf4dfc8f25666ab180712f789c19ae211d Mon Sep 17 00:00:00 2001 From: Vien Dinh Date: Sun, 8 Nov 2020 12:53:04 +0700 Subject: [PATCH] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 2e6ff3f..0aff327 100644 --- a/README.md +++ b/README.md @@ -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 }; }