Skip to content

Commit

Permalink
Merge pull request #143 from st3v3nmw/develop
Browse files Browse the repository at this point in the history
save buryList data fix
  • Loading branch information
st3v3nmw authored Jun 7, 2021
2 parents 24f8760 + 0541e77 commit a9d1988
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/flashcard-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,11 @@ export class FlashcardModal extends Modal {
this.currentDeck.nextCard(this);
}

buryRelatedCards(tillNextDay: boolean) {
if (tillNextDay)
async buryRelatedCards(tillNextDay: boolean) {
if (tillNextDay) {
this.plugin.data.buryList.push(cyrb53(this.currentCard.cardText));
await this.plugin.savePluginData();
}

for (let relatedCard of this.currentCard.relatedCards) {
let dueIdx = this.currentDeck.dueFlashcards.indexOf(relatedCard);
Expand Down

0 comments on commit a9d1988

Please sign in to comment.