diff --git a/src/pages/topic-stuff/topic/topic.tsx b/src/pages/topic-stuff/topic/topic.tsx index d683c111..5259edb5 100644 --- a/src/pages/topic-stuff/topic/topic.tsx +++ b/src/pages/topic-stuff/topic/topic.tsx @@ -170,6 +170,7 @@ function TopicPage() { setFlashcards(allFlashcards); //refresh the flashcards state setAddFlashcardModal(false); //closes the add flashcard modal once the flashcard has been added + setOpenFlashcard(undefined); //closes the flashcard view once the flashcard has been added }; //Edit Flashcard