aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/client/pages/StudyPage.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/pages/StudyPage.tsx')
-rw-r--r--src/client/pages/StudyPage.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/pages/StudyPage.tsx b/src/client/pages/StudyPage.tsx
index cec11d3..dd82b27 100644
--- a/src/client/pages/StudyPage.tsx
+++ b/src/client/pages/StudyPage.tsx
@@ -37,7 +37,9 @@ const RatingStyles: Record<Rating, string> = {
};
function StudySession({ deckId }: { deckId: string }) {
- const { deck, cards } = useAtomValue(studyDataAtomFamily(deckId));
+ const {
+ data: { deck, cards },
+ } = useAtomValue(studyDataAtomFamily(deckId));
// Session state (kept as useState - transient UI state)
const [currentIndex, setCurrentIndex] = useState(0);